Function at 0x104c0b0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1a4
mov eax, dword [0x10cd598]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x19c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1a0], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1a4], eax
mov eax, dword [ebp + 0x14]
push ebx
xor ebx, ebx
mov dword [ebp - 0x198], eax
mov eax, dword [ebp + 0x1c]
push esi
push edi
mov dword [ebp - 0x130], eax
mov eax, dword [0x10cf204]
push 0x88
mov dword [ebp - 0x194], eax
lea eax, [ebp - 0x120]
push ebx
push eax
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x158], ebx
mov dword [ebp - 0x16c], ebx
mov dword [ebp - 0x154], ebx
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x150], ebx
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x170], ebx
mov dword [ebp - 0x160], ebx
mov dword [ebp - 0x164], ebx
mov dword [ebp - 0x18c], ebx
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x168], ebx
call sub.msvcrt.dll_memset
xor eax, eax
lea edi, [ebp - 0x188]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x14c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
mov dword [ebp - 0x174], ebx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x190], ebx
xor esi, esi
lea edi, [ebp + esi*4 - 0x14c]
push edi
lea eax, [ebp + esi*4 - 0x188]
push eax
push esi
push dword [ebp - 0x19c]
call fcn.01048292
cmp eax, ebx
je 0x104c1c1
push 0x80092004
push eax
push 0x1896013e
call fcn.01089403
mov edi, dword [edi]
add dword [ebp - 0x128], edi
cmp edi, ebx
je 0x104c239
cmp esi, ebx
je 0x104c1e2
cmp esi, 2
je 0x104c1e2
push 0x100b5f8
push 0x990
jmp 0x104c1ec
push 0x100b6d8
push 0x98f
call fcn.01047e72
mov dword [ebp - 0x12c], eax
cmp esi, ebx
je 0x104c20a
mov dword [ebp - 0x15c], 3
cmp esi, 1
jne 0x104c214
mov dword [ebp - 0x15c], 1
push edi
push 0x98e
call fcn.01088aa0
push eax
push dword [ebp - 0x12c]
push dword [ebp - 0x15c]
push 0x100bb18
call fcn.01099014
add esp, 0x14
inc esi
cmp esi, 4
jb 0x104c191
cmp dword [ebp - 0x128], ebx
jne 0x104c260
mov esi, 0x80092004
push esi
push 0x18a8013e
call fcn.010893e6
jmp 0x104cf31
mov dword [ebp - 0x12c], ebx
mov ecx, dword [ebp - 0x12c]
shl ecx, 2
mov eax, dword [ebp + ecx - 0x14c]
mov dword [ebp - 0x15c], eax
cmp eax, ebx
je 0x104c391
mov dword [ebp - 0x128], ebx
cmp eax, ebx
jbe 0x104c391
mov edi, dword [ebp + ecx - 0x188]
cmp dword [ebp - 0x138], ebx
je 0x104c2b3
push dword [ebp - 0x138]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x138], ebx
cmp dword [ebp - 0x134], ebx
je 0x104c2cd
push dword [ebp - 0x134]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x134], ebx
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x138]
push eax
push dword [edi]
call fcn.01048469
mov esi, eax
cmp esi, ebx
jne 0x104c3cc
mov esi, dword [ebp - 0x138]
cmp dword [0x10cf1f4], ebx
je 0x104c330
push esi
push dword [ebp - 0x128]
push dword [ebp - 0x12c]
push 0x100baf4
call fcn.01099014
push dword [ebp - 0x134]
push dword [ebp - 0x128]
push dword [ebp - 0x12c]
push 0x100bad0
call fcn.01099014
add esp, 0x20
cmp dword [ebp - 0x154], ebx
jne 0x104c344
mov dword [ebp - 0x154], esi
mov dword [ebp - 0x138], ebx
cmp dword [ebp - 0x150], ebx
jne 0x104c360
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x134], ebx
jmp 0x104c376
push dword [ebp - 0x134]
push dword [ebp - 0x150]
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x104c3d7
inc dword [ebp - 0x128]
mov eax, dword [ebp - 0x128]
add edi, 4
cmp eax, dword [ebp - 0x15c]
jb 0x104c299
inc dword [ebp - 0x12c]
cmp dword [ebp - 0x12c], 4
jb 0x104c266
push 0xffffffffffffffff
push dword [ebp - 0x1a4]
lea eax, [ebp - 0x158]
push eax
call fcn.0108f8d0
test eax, eax
jne 0x104c403
mov esi, 0x8007000e
push esi
push 0x18e0013e
jmp 0x104c256
push esi
push 0x18c0013e
jmp 0x104c256
mov esi, 0x8007000d
push esi
push 0x18d6013e
push dword [ebp - 0x134]
call fcn.01089421
push esi
push 0x18d7013e
push dword [ebp - 0x150]
call fcn.01089421
jmp 0x104cf31
push 0xf0000000
push 1
push 0x100aed8
push ebx
lea eax, [ebp - 0x164]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x104c433
call fcn.0108edc3
mov esi, eax
push esi
push 0x18eb013e
jmp 0x104c256
cmp dword [ebp - 0x130], ebx
je 0x104c483
push ebx
push ebx
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x18c]
push eax
push 1
push ebx
push dword [ebp - 0x130]
call sub.certcli.dll_Ordinal_256
mov esi, eax
cmp esi, ebx
je 0x104c46a
push esi
push 0x18f8013e
jmp 0x104c256
cmp dword [ebp - 0x190], 0x14
je 0x104c4da
mov esi, 0x80070057
push esi
push 0x18fd013e
jmp 0x104c256
lea eax, [ebp - 0x48]
push eax
push 0x14
push dword [ebp - 0x164]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x104c4ab
call fcn.0108edc3
mov esi, eax
push esi
push 0x1905013e
jmp 0x104c256
lea eax, [ebp - 0x16c]
push eax
push 0x14
lea eax, [ebp - 0x48]
push eax
call fcn.01048532
mov esi, eax
cmp esi, ebx
je 0x104c4ce
push esi
push 0x190b013e
jmp 0x104c256
mov eax, dword [ebp - 0x16c]
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x14c]
mov ecx, dword [ebp - 0x148]
mov dword [ebp - 0x128], ebx
cmp eax, ebx
je 0x104c4fc
mov ecx, dword [ebp - 0x188]
mov eax, dword [ecx + eax*4 - 4]
jmp 0x104c50a
cmp ecx, ebx
je 0x104c520
mov eax, dword [ebp - 0x184]
mov eax, dword [eax + ecx*4 - 4]
mov dword [ebp - 0x128], eax
cmp eax, ebx
je 0x104c520
cmp dword [ebp + 0x18], ebx
jne 0x104c520
mov dword [ebp + 0x18], 2
lea eax, [ebp - 0x120]
push eax
mov eax, dword [ebp + 0x18]
push ebx
push dword [ebp - 0x130]
neg eax
push dword [ebp - 0x1a0]
sbb eax, eax
push dword [ebp - 0x164]
and eax, 0xfffffff0
add eax, 0x20
push eax
call fcn.01049595
mov esi, eax
cmp esi, ebx
je 0x104c55e
push esi
push 0x1925013e
jmp 0x104c256
push 8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.0104624a
mov esi, eax
cmp esi, ebx
je 0x104c581
push esi
push 0x1928013e
jmp 0x104c256
mov esi, dword [sym.imp.msvcrt.dll_fopen]
cmp dword [0x10cf1f0], ebx
jne 0x104c5b8
push 0x100b1e0
push dword [ebp - 0x158]
call esi
pop ecx
pop ecx
mov dword [ebp - 0x124], eax
cmp eax, ebx
je 0x104c5b8
mov esi, 0x800700b7
push esi
push 0x1930013e
jmp 0x104c256
push 0x100b1ac
push dword [ebp - 0x158]
call esi
mov esi, eax
pop ecx
pop ecx
mov dword [ebp - 0x124], esi
cmp esi, ebx
jne 0x104c5e3
mov esi, 0x80010137
push esi
push 0x1937013e
jmp 0x104c256
mov edi, dword [sym.imp.msvcrt.dll_fprintf]
push 0x100babc
push esi
call edi
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0xffffffc0
sub eax, 0xffffff80
push eax
push 0x100baac
push esi
call edi
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
add eax, 3
push eax
push 0x100ba98
push esi
call edi
add esp, 0x20
cmp dword [ebp + 0x18], ebx
je 0x104c62c
push 0x100ba90
push esi
call edi
pop ecx
pop ecx
push 0x100ba88
push esi
call edi
pop ecx
pop ecx
mov dword [ebp - 0x12c], ebx
mov eax, dword [ebp - 0x12c]
movzx eax, byte [ebp + eax - 0xc]
push eax
push 0x100ba80
push esi
call edi
add esp, 0xc
inc dword [ebp - 0x12c]
cmp dword [ebp - 0x12c], 8
jb 0x104c63c
push 0x100b170
push esi
call edi
push dword [ebp - 0x130]
push 0x100ba70
push esi
call edi
push 0x100ba64
push esi
call edi
push 0x100ba50
push esi
call edi
push dword [ebp - 0x154]
push 0x100ba40
push esi
call edi
add esp, 0x30
call fcn.010460a8
cmp dword [0x10cf1f4], ebx
jne 0x104c6b0
mov dword [0x10cf204], 1
xor ebx, ebx
cmp dword [ebp + 0x18], ebx
je 0x104cbaa
cmp dword [ebp - 0x14c], ebx
jne 0x104c72d
cmp dword [ebp - 0x128], ebx
je 0x104c7d3
push 4
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x188], eax
test eax, eax
jne 0x104c6f3
mov esi, 0x8007000e
push esi
push 0x195f013e
jmp 0x104c256
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x170]
push eax
push dword [ebp - 0x188]
push dword [ebp - 0x128]
call fcn.01047d82
mov esi, eax
test esi, esi
je 0x104c723
push esi
push 0x1966013e
jmp 0x104c256
mov dword [ebp - 0x14c], 1
mov eax, dword [ebp - 0x188]
mov ecx, dword [ebp - 0x14c]
mov ebx, dword [eax + ecx*4 - 4]
push 0x100ba28
push dword [ebp - 0x124]
call edi
pop ecx
pop ecx
push dword [ebx + 8]
lea eax, [ebp - 0x120]
push dword [ebx + 4]
push eax
push 0x100b820
push 0x100b7fc
push dword [ebp - 0x124]
call fcn.0104b91a
mov esi, eax
test esi, esi
je 0x104c77f
push esi
push 0x1976013e
jmp 0x104c256
push 0xffffffffffffffff
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.01045424
mov esi, eax
test esi, esi
je 0x104c79d
push esi
push 0x1979013e
jmp 0x104c256
push 2
push dword [ebp - 0x170]
lea eax, [ebp - 0x120]
push ebx
push eax
push 0x100b768
push 0x100b7fc
push dword [ebp - 0x124]
call fcn.0104bdda
mov esi, eax
test esi, esi
je 0x104c7d3
push esi
push 0x1985013e
jmp 0x104c256
cmp dword [ebp - 0x13c], 0
jne 0x104c805
lea eax, [ebp - 0x13c]
push eax
push 0
push 1
push 0
push dword [ebp - 0x128]
call fcn.010492e1
mov esi, eax
test esi, esi
je 0x104c805
push esi
push 0x198b013e
jmp 0x104c256
cmp dword [ebp - 0x148], 0
je 0x104cab9
push 0x100ba14
push dword [ebp - 0x124]
call edi
xor eax, eax
pop ecx
pop ecx
cmp dword [ebp - 0x148], eax
jbe 0x104c885
mov ecx, dword [ebp - 0x184]
mov esi, dword [ecx + eax*4]
lea ebx, [eax + 1]
push ebx
push 0x100b60c
lea eax, [ebp - 0x98]
push 0x24
push eax
call fcn.01032700
add esp, 0x10
push 1
push 0
push esi
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x98]
push eax
push 0x100b6a8
push dword [ebp - 0x124]
call fcn.0104bdda
mov esi, eax
test esi, esi
jne 0x104ca59
mov eax, ebx
cmp eax, dword [ebp - 0x148]
jb 0x104c82b
push dword [ebp - 0x148]
push 0x100ba04
push dword [ebp - 0x124]
call edi
push 0x100b9ec
push dword [ebp - 0x124]
call edi
xor eax, eax
add esp, 0x14
cmp dword [ebp - 0x148], eax
jbe 0x104c8fc
mov ecx, dword [ebp - 0x184]
mov esi, dword [ecx + eax*4]
lea ebx, [eax + 1]
push ebx
push 0x100b618
lea eax, [ebp - 0x34]
push 0x26
push eax
call fcn.01032700
add esp, 0x10
push esi
push dword [ebp - 0x13c]
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x124]
call fcn.01048e8e
mov esi, eax
test esi, esi
jne 0x104ca64
mov eax, ebx
cmp eax, dword [ebp - 0x148]
jb 0x104c8b2
push 0x100b9cc
push dword [ebp - 0x124]
call edi
xor eax, eax
pop ecx
pop ecx
cmp dword [ebp - 0x148], eax
jbe 0x104c989
mov ecx, dword [ebp - 0x184]
mov ebx, dword [ecx + eax*4]
inc eax
push eax
push 0x100b618
mov dword [ebp - 0x130], eax
lea eax, [ebp - 0x34]
push 0x26
push eax
call fcn.01032700
add esp, 0x10
push dword [ebx + 8]
lea eax, [ebp - 0x120]
push dword [ebx + 4]
push eax
lea eax, [ebp - 0x34]
push eax
push 0x100b650
push dword [ebp - 0x124]
call fcn.0104b91a
mov esi, eax
test esi, esi
jne 0x104ca6f
push 0xffffffffffffffff
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.01045424
mov esi, eax
test esi, esi
jne 0x104ca7a
mov eax, dword [ebp - 0x130]
cmp eax, dword [ebp - 0x148]
jb 0x104c915
xor eax, eax
cmp dword [ebp - 0x140], eax
jbe 0x104ca07
mov ecx, dword [ebp - 0x17c]
mov ebx, dword [ecx + eax*4]
inc eax
push eax
push 0x100b3e8
mov dword [ebp - 0x130], eax
lea eax, [ebp - 0x74]
push 0x2a
push eax
call fcn.01032700
add esp, 0x10
push dword [ebx + 8]
lea eax, [ebp - 0x120]
push dword [ebx + 4]
push eax
lea eax, [ebp - 0x74]
push eax
push 0x100b650
push dword [ebp - 0x124]
call fcn.0104b91a
mov esi, eax
test esi, esi
jne 0x104ca85
push 0xffffffffffffffff
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.01045424
mov esi, eax
test esi, esi
jne 0x104ca90
mov eax, dword [ebp - 0x130]
cmp eax, dword [ebp - 0x140]
jb 0x104c993
push 0x100b9b4
push dword [ebp - 0x124]
call edi
mov eax, dword [ebp - 0x184]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x148]
mov ebx, dword [eax + ecx*4 - 4]
push dword [ebx + 8]
lea eax, [ebp - 0x120]
push dword [ebx + 4]
push eax
push 0x100b820
push 0x100b684
push dword [ebp - 0x124]
call fcn.0104b91a
mov esi, eax
test esi, esi
je 0x104ca9b
push esi
push 0x19e4013e
jmp 0x104c256
push esi
push 0x19a2013e
jmp 0x104c256
push esi
push 0x19ad013e
jmp 0x104c256
push esi
push 0x19c0013e
jmp 0x104c256
push esi
push 0x19c3013e
jmp 0x104c256
push esi
push 0x19d4013e
jmp 0x104c256
push esi
push 0x19d7013e
jmp 0x104c256
push 0xffffffffffffffff
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.01045424
mov esi, eax
test esi, esi
je 0x104cab9
push esi
push 0x19e7013e
jmp 0x104c256
push 0x100b9ac
push dword [ebp - 0x124]
call edi
mov eax, dword [ebp - 0x13c]
pop ecx
pop ecx
test eax, eax
je 0x104cad7
mov ecx, dword [eax + 8]
jmp 0x104cad9
xor ecx, ecx
test eax, eax
je 0x104cae2
mov eax, dword [eax + 4]
jmp 0x104cae4
xor eax, eax
push ecx
push eax
lea eax, [ebp - 0x120]
push eax
push 0x100b820
push 0x1003e60
push dword [ebp - 0x124]
call fcn.0104b91a
mov esi, eax
test esi, esi
je 0x104cb13
push esi
push 0x19f3013e
jmp 0x104c256
push 0xffffffffffffffff
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.01045424
mov esi, eax
test esi, esi
je 0x104cb31
push esi
push 0x19f6013e
jmp 0x104c256
push 0x100b994
push dword [ebp - 0x124]
call edi
pop ecx
pop ecx
push 0x100b984
lea eax, [ebp - 0x120]
push eax
push 0x100b5cc
mov ebx, 0x100b5a4
push ebx
push dword [ebp - 0x124]
call fcn.0104bad1
mov esi, eax
test esi, esi
je 0x104cb73
push esi
push 0x1a00013e
jmp 0x104c256
mov eax, dword [ebp + 0x18]
dec eax
neg eax
sbb eax, eax
and eax, 0x1000000
push eax
lea eax, [ebp - 0x120]
push eax
push 0x100b590
push ebx
push dword [ebp - 0x124]
call fcn.0104bb63
mov esi, eax
test esi, esi
je 0x104cbaa
push esi
push 0x1a0a013e
jmp 0x104c256
xor esi, esi
cmp dword [ebp - 0x144], esi
jne 0x104cbc0
cmp dword [ebp - 0x140], esi
je 0x104ce2e
push 0x100b978
push dword [ebp - 0x124]
call edi
pop ecx
pop ecx
cmp dword [ebp - 0x144], esi
je 0x104cc76
mov eax, dword [ebp - 0x180]
mov ecx, dword [ebp - 0x144]
mov ebx, dword [eax + ecx*4 - 4]
push dword [ebx + 8]
lea eax, [ebp - 0x120]
push dword [ebx + 4]
push eax
push 0x100b4e4
push 0x100b55c
push dword [ebp - 0x124]
call fcn.0104b91a
mov esi, eax
test esi, esi
je 0x104cc1e
push esi
push 0x1a1e013e
jmp 0x104c256
push 0xffffffffffffffff
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.01045424
mov esi, eax
test esi, esi
je 0x104cc3c
push esi
push 0x1a21013e
jmp 0x104c256
push 0x9c4
push 2
push 0x2400
push ebx
lea eax, [ebp - 0x120]
push eax
push 0x100b454
push 0x100b55c
push dword [ebp - 0x124]
call fcn.0104bb9d
mov esi, eax
test esi, esi
je 0x104cc76
push esi
push 0x1a2e013e
jmp 0x104c256
cmp dword [ebp - 0x140], 0
je 0x104ccc0
push dword [ebp - 0x17c]
lea eax, [ebp - 0x120]
push dword [ebp - 0x140]
push dword [ebp - 0x184]
push 0
push eax
push 0x100b6a8
push 0x100b55c
push dword [ebp - 0x124]
call fcn.0104be73
mov esi, eax
test esi, esi
je 0x104ccc0
push esi
push 0x1a3e013e
jmp 0x104c256
push dword [ebp - 0x140]
push 0x100ba04
push dword [ebp - 0x124]
call edi
add esp, 0xc
push 0
push 0x201
push 0
xor ebx, ebx
inc ebx
push ebx
push 2
call dword [sym.imp.CRYPT32.dll_CertOpenStore]
mov dword [ebp - 0x160], eax
test eax, eax
jne 0x104cd07
call fcn.0108edc3
mov esi, eax
push esi
push 0x1a4f013e
jmp 0x104cf15
mov esi, dword [sym.imp.CRYPT32.dll_CertSaveStore]
jmp 0x104cd34
cmp dword [ebp - 0x174], 0
push dword [ebp - 0x178]
jne 0x104cd5f
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x174], eax
test eax, eax
je 0x104cf0a
push 0
lea eax, [ebp - 0x178]
push eax
push 2
push ebx
push ebx
push dword [ebp - 0x160]
call esi
test eax, eax
jne 0x104cd0f
call fcn.0108edc3
mov esi, eax
push esi
push 0x1a5c013e
jmp 0x104cf15
push dword [ebp - 0x174]
lea eax, [ebp - 0x120]
push eax
push 0x100b2dc
mov ebx, 0x100b55c
push ebx
push dword [ebp - 0x124]
call fcn.0104b91a
mov esi, eax
test esi, esi
je 0x104cd93
push esi
push 0x1a70013e
jmp 0x104cf15
mov ecx, dword [ebp - 0x144]
xor eax, eax
test ecx, ecx
je 0x104cda7
mov eax, dword [ebp - 0x180]
jmp 0x104cdb7
mov ecx, dword [ebp - 0x140]
test ecx, ecx
je 0x104cdbb
mov eax, dword [ebp - 0x17c]
mov eax, dword [eax + ecx*4 - 4]
lea ecx, [ebp - 0x168]
push ecx
push dword [ebp - 0x198]
push 0
push eax
push dword [ebp - 0x128]
call fcn.010492e1
mov esi, eax
test esi, esi
je 0x104cde7
push esi
push 0x1a7e013e
jmp 0x104cf15
mov eax, dword [ebp - 0x168]
test eax, eax
je 0x104cdf6
mov ecx, dword [eax + 8]
jmp 0x104cdf8
xor ecx, ecx
test eax, eax
je 0x104ce01
mov eax, dword [eax + 4]
jmp 0x104ce03
xor eax, eax
push ecx
push eax
lea eax, [ebp - 0x120]
push eax
push 0x100b2ac
push ebx
push dword [ebp - 0x124]
call fcn.0104b91a
mov esi, eax
test esi, esi
je 0x104ce2e
push esi
push 0x1a87013e
jmp 0x104cf15
cmp dword [ebp + 0x18], 0
jne 0x104cebd
push 0x100b9cc
push dword [ebp - 0x124]
call edi
xor eax, eax
pop ecx
pop ecx
cmp dword [ebp - 0x140], eax
jbe 0x104cebd
mov ecx, dword [ebp - 0x17c]
mov ebx, dword [ecx + eax*4]
inc eax
push eax
push 0x100b3e8
mov dword [ebp - 0x130], eax
lea eax, [ebp - 0x74]
push 0x2a
push eax
call fcn.01032700
add esp, 0x10
push dword [ebx + 8]
lea eax, [ebp - 0x120]
push dword [ebx + 4]
push eax
lea eax, [ebp - 0x74]
push eax
push 0x100b650
push dword [ebp - 0x124]
call fcn.0104b91a
mov esi, eax
test esi, esi
jne 0x104cef6
push 0xffffffffffffffff
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.01045424
mov esi, eax
test esi, esi
jne 0x104cefe
mov eax, dword [ebp - 0x130]
cmp eax, dword [ebp - 0x140]
jb 0x104ce51
push 0x100b170
push dword [ebp - 0x124]
call edi
push dword [ebp - 0x124]
call dword [sym.imp.msvcrt.dll_fflush]
push dword [ebp - 0x124]
call dword [sym.imp.msvcrt.dll_ferror]
add esp, 0x10
test eax, eax
je 0x104cf06
mov esi, 0x80070070
push esi
push 0x1aaa013e
jmp 0x104cf15
push esi
push 0x1a9c013e
jmp 0x104cf15
push esi
push 0x1aa2013e
jmp 0x104cf15
xor esi, esi
jmp 0x104cf1a
mov esi, 0x8007000e
push esi
push 0x1a66013e
call fcn.010893e6
cmp dword [ebp - 0x160], 0
je 0x104cf31
push 2
push dword [ebp - 0x160]
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
xor ebx, ebx
xor edi, edi
push dword [ebp + edi - 0x14c]
push dword [ebp + edi - 0x188]
call fcn.010481d3
add edi, 4
cmp edi, 0x10
jb 0x104cf35
mov edi, dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
cmp dword [ebp - 0x13c], ebx
je 0x104cf66
push dword [ebp - 0x13c]
call edi
cmp dword [ebp - 0x168], ebx
je 0x104cf76
push dword [ebp - 0x168]
call edi
cmp dword [ebp - 0x124], ebx
je 0x104cf8b
push dword [ebp - 0x124]
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x138], ebx
je 0x104cfa1
push dword [ebp - 0x138]
call edi
cmp dword [ebp - 0x154], ebx
je 0x104cfb1
push dword [ebp - 0x154]
call edi
cmp dword [ebp - 0x134], ebx
je 0x104cfc1
push dword [ebp - 0x134]
call edi
cmp dword [ebp - 0x150], ebx
je 0x104cfd1
push dword [ebp - 0x150]
call edi
cmp dword [ebp - 0x18c], ebx
je 0x104cfe1
push dword [ebp - 0x18c]
call edi
cmp dword [ebp - 0x16c], ebx
je 0x104cff1
push dword [ebp - 0x16c]
call edi
cmp dword [ebp - 0x158], ebx
je 0x104d001
push dword [ebp - 0x158]
call edi
cmp dword [ebp - 0x174], ebx
je 0x104d011
push dword [ebp - 0x174]
call edi
cmp dword [ebp - 0x11c], ebx
je 0x104d025
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov edi, dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp dword [ebp - 0x170], ebx
je 0x104d03c
push ebx
push dword [ebp - 0x170]
call edi
cmp dword [ebp - 0x164], ebx
je 0x104d04d
push ebx
push dword [ebp - 0x164]
call edi
mov eax, dword [ebp - 0x194]
mov ecx, dword [ebp - 4]
pop edi
mov dword [0x10cf204], eax
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01074bd5
leave
ret 0x18