Function at 0x1030bbf
Capabilities:
Generate random numbers via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1a8
mov eax, dword [0x1079e94]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1a0], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1a4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1a8], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x19c], eax
mov eax, dword [ebp + 0x1c]
push ebx
mov dword [ebp - 0x12c], eax
mov eax, dword [0x107b268]
push esi
push edi
mov dword [ebp - 0x194], eax
xor eax, eax
push 0x22
pop ecx
lea edi, [ebp - 0x120]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x18c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0x14c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x158], ebx
mov dword [ebp - 0x174], ebx
mov dword [ebp - 0x154], ebx
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x150], ebx
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x17c], ebx
mov dword [ebp - 0x160], ebx
mov dword [ebp - 0x164], ebx
mov dword [ebp - 0x178], ebx
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x168], ebx
mov dword [ebp - 0x16c], ebx
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x128], ebx
xor edi, edi
lea esi, [ebp + edi - 0x14c]
push esi
lea eax, [ebp + edi - 0x18c]
push eax
push dword [ebp - 0x128]
push dword [ebp - 0x1a0]
call fcn.0102db8c
cmp eax, ebx
je 0x1030cc9
push 0x80092004
push eax
push 0x1850013e
call fcn.0105362d
mov eax, dword [esi]
add dword [ebp - 0x134], eax
cmp eax, ebx
je 0x1030d42
cmp edi, ebx
je 0x1030cea
cmp edi, 8
je 0x1030cea
push 0x1008760
push 0x990
jmp 0x1030cf4
push 0x1008840
push 0x98f
call fcn.0102d532
cmp edi, ebx
mov dword [ebp - 0x190], eax
je 0x1030d12
cmp edi, 4
mov dword [ebp - 0x15c], 3
jne 0x1030d1c
mov dword [ebp - 0x15c], 1
push dword [esi]
push 0x98e
call fcn.01052a94
push eax
push dword [ebp - 0x190]
push dword [ebp - 0x15c]
push 0x1008c80
call fcn.0105b329
add esp, 0x14
inc dword [ebp - 0x128]
add edi, 4
cmp edi, 0x10
jb 0x1030c94
cmp dword [ebp - 0x134], ebx
jne 0x1030d6c
mov esi, 0x80092004
push esi
push 0x1862013e
jmp 0x10317ed
mov dword [ebp - 0x128], ebx
mov ecx, dword [ebp - 0x128]
shl ecx, 2
mov eax, dword [ebp + ecx - 0x14c]
cmp eax, ebx
mov dword [ebp - 0x15c], eax
je 0x1030e9d
cmp eax, ebx
mov dword [ebp - 0x134], ebx
jbe 0x1030e9d
mov edi, dword [ebp + ecx - 0x18c]
cmp dword [ebp - 0x138], ebx
je 0x1030dbf
push dword [ebp - 0x138]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x138], ebx
cmp dword [ebp - 0x130], ebx
je 0x1030dd9
push dword [ebp - 0x130]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x130], ebx
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x138]
push eax
push dword [edi]
call fcn.0102dd54
mov esi, eax
cmp esi, ebx
jne 0x1030ed8
cmp dword [0x107b258], ebx
mov esi, dword [ebp - 0x138]
je 0x1030e3c
push esi
push dword [ebp - 0x134]
push dword [ebp - 0x128]
push 0x1008c5c
call fcn.0105b329
push dword [ebp - 0x130]
push dword [ebp - 0x134]
push dword [ebp - 0x128]
push 0x1008c38
call fcn.0105b329
add esp, 0x20
cmp dword [ebp - 0x154], ebx
jne 0x1030e50
mov dword [ebp - 0x154], esi
mov dword [ebp - 0x138], ebx
cmp dword [ebp - 0x150], ebx
jne 0x1030e6c
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x130], ebx
jmp 0x1030e82
push dword [ebp - 0x130]
push dword [ebp - 0x150]
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1030ee3
inc dword [ebp - 0x134]
mov eax, dword [ebp - 0x134]
add edi, 4
cmp eax, dword [ebp - 0x15c]
jb 0x1030da5
inc dword [ebp - 0x128]
cmp dword [ebp - 0x128], 4
jb 0x1030d72
push 0xffffffffffffffff
push dword [ebp - 0x1a8]
lea eax, [ebp - 0x158]
push eax
call fcn.0106dfe1
test eax, eax
jne 0x1030f0f
mov esi, 0x8007000e
push esi
push 0x189a013e
jmp 0x10317ed
push esi
push 0x187a013e
jmp 0x10317ed
mov esi, 0x8007000d
push esi
push 0x1890013e
push dword [ebp - 0x130]
call fcn.0105364b
push esi
push 0x1891013e
push dword [ebp - 0x150]
call fcn.0105364b
jmp 0x1031a59
push 0xf0000000
push 1
push 0x10080b0
push ebx
lea eax, [ebp - 0x164]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1030f3f
call fcn.0106d6ff
mov esi, eax
push esi
push 0x18a5013e
jmp 0x10317ed
cmp dword [ebp - 0x12c], ebx
je 0x1030f8f
push ebx
push ebx
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x178]
push eax
push 1
push ebx
push dword [ebp - 0x12c]
call sub.certcli.dll_Ordinal_256
mov esi, eax
cmp esi, ebx
je 0x1030f76
push esi
push 0x18b2013e
jmp 0x10317ed
cmp dword [ebp - 0x198], 0x14
je 0x1030fe6
mov esi, 0x80070057
push esi
push 0x18b7013e
jmp 0x10317ed
lea eax, [ebp - 0x48]
push eax
push 0x14
push dword [ebp - 0x164]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x1030fb7
call fcn.0106d6ff
mov esi, eax
push esi
push 0x18bf013e
jmp 0x10317ed
lea eax, [ebp - 0x174]
push eax
push 0x14
lea eax, [ebp - 0x48]
push eax
call fcn.0102de1d
mov esi, eax
cmp esi, ebx
je 0x1030fda
push esi
push 0x18c5013e
jmp 0x10317ed
mov eax, dword [ebp - 0x174]
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x14c]
cmp eax, ebx
mov ecx, dword [ebp - 0x148]
mov dword [ebp - 0x128], ebx
je 0x1031008
mov ecx, dword [ebp - 0x18c]
mov eax, dword [ecx + eax*4 - 4]
jmp 0x1031016
cmp ecx, ebx
je 0x103102c
mov eax, dword [ebp - 0x188]
mov eax, dword [eax + ecx*4 - 4]
cmp eax, ebx
mov dword [ebp - 0x128], eax
je 0x103102c
cmp dword [ebp + 0x18], ebx
jne 0x103102c
mov dword [ebp + 0x18], 2
mov ebx, dword [ebp + 0x18]
lea eax, [ebp - 0x120]
push eax
mov eax, dword [ebp + 0x18]
push 0
push dword [ebp - 0x198]
neg ebx
push dword [ebp - 0x178]
sbb ebx, ebx
push dword [ebp - 0x12c]
and ebx, 0xffffffc0
push dword [ebp - 0x1a4]
add ebx, 0x80
push dword [ebp - 0x164]
neg eax
sbb eax, eax
and eax, 0xfffffff0
push ebx
add eax, 0x20
push eax
call fcn.0102ecf0
mov esi, eax
test esi, esi
je 0x1031088
push esi
push 0x18e2013e
jmp 0x10317ed
push 8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.0102b009
mov esi, eax
test esi, esi
je 0x10310ab
push esi
push 0x18e5013e
jmp 0x10317ed
cmp dword [0x107b254], 0
mov esi, dword [sym.imp.msvcrt.dll_fopen]
jne 0x10310e3
push 0x1008010
push dword [ebp - 0x158]
call esi
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x124], eax
je 0x10310e3
mov esi, 0x800700b7
push esi
push 0x18ed013e
jmp 0x10317ed
push 0x1007fdc
push dword [ebp - 0x158]
call esi
mov esi, eax
test esi, esi
pop ecx
pop ecx
mov dword [ebp - 0x124], esi
jne 0x103110e
mov esi, 0x80010137
push esi
push 0x18f4013e
jmp 0x10317ed
mov edi, dword [sym.imp.msvcrt.dll_fprintf]
push 0x1008c24
push esi
call edi
push ebx
push 0x1008c14
push esi
call edi
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
add eax, 3
push eax
push 0x1008c00
push esi
call edi
xor ebx, ebx
add esp, 0x20
cmp dword [ebp + 0x18], ebx
je 0x103114c
push 0x1008bf8
push esi
call edi
pop ecx
pop ecx
push 0x1008bf0
push esi
call edi
pop ecx
pop ecx
movzx eax, byte [ebp + ebx - 0xc]
push eax
push 0x1008be8
push esi
call edi
add esp, 0xc
inc ebx
cmp ebx, 8
jb 0x1031156
push 0x1007fa0
push esi
call edi
push dword [ebp - 0x12c]
push 0x1008bd8
push esi
call edi
push 0x1008bcc
push esi
call edi
push 0x1008bb8
push esi
call edi
push dword [ebp - 0x154]
push 0x1008ba8
push esi
call edi
add esp, 0x30
call fcn.0102ae45
cmp dword [0x107b258], 0
jne 0x10311bc
mov dword [0x107b268], 1
cmp dword [ebp + 0x18], 0
je 0x10316e2
cmp dword [ebp - 0x14c], 0
jne 0x1031235
cmp dword [ebp - 0x128], 0
je 0x10312e5
push 4
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [ebp - 0x18c], eax
jne 0x1031200
mov esi, 0x8007000e
push esi
push 0x191b013e
jmp 0x10317ed
lea ecx, [ebp - 0x13c]
push ecx
lea ecx, [ebp - 0x17c]
push ecx
push eax
push dword [ebp - 0x128]
call fcn.0102d442
mov esi, eax
test esi, esi
je 0x103122b
push esi
push 0x1922013e
jmp 0x10317ed
mov dword [ebp - 0x14c], 1
mov eax, dword [ebp - 0x18c]
mov ecx, dword [ebp - 0x14c]
mov ebx, dword [eax + ecx*4 - 4]
push 0x1008b90
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 0x1008988
push 0x1008964
push dword [ebp - 0x124]
call fcn.0102e015
mov esi, eax
test esi, esi
je 0x1031287
push esi
push 0x1932013e
jmp 0x10317ed
push 0xffffffffffffffff
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.0102aa93
mov esi, eax
test esi, esi
je 0x10312a5
push esi
push 0x1935013e
jmp 0x10317ed
push 0x5dc
push 2
push 0x2400
push dword [ebp - 0x17c]
lea eax, [ebp - 0x120]
push ebx
push eax
push 0x10088d0
push 0x1008964
push dword [ebp - 0x124]
call fcn.0102e617
mov esi, eax
test esi, esi
je 0x10312eb
push esi
push 0x1943013e
jmp 0x10317ed
mov ebx, dword [ebp - 0x194]
cmp dword [ebp - 0x13c], 0
jne 0x103131d
lea eax, [ebp - 0x13c]
push eax
push 0
push 1
push 0
push dword [ebp - 0x128]
call fcn.010308fd
mov esi, eax
test esi, esi
je 0x103131d
push esi
push 0x1949013e
jmp 0x10317ed
cmp dword [ebp - 0x148], 0
je 0x10315f1
push 0x1008b7c
push dword [ebp - 0x124]
call edi
cmp dword [ebp - 0x148], 0
pop ecx
pop ecx
jbe 0x10313c0
mov eax, dword [ebp - 0x188]
mov ebx, 0x3e8
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x12c]
mov esi, dword [eax]
lea eax, [ebx - 0x3e7]
push eax
lea eax, [ebp - 0x98]
push 0x1008774
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push ebx
push 1
push 0xa400
push 0
push esi
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x98]
push eax
push 0x1008810
push dword [ebp - 0x124]
call fcn.0102e617
mov esi, eax
test esi, esi
jne 0x1031591
add dword [ebp - 0x12c], 4
inc ebx
lea eax, [ebx - 0x3e8]
cmp eax, dword [ebp - 0x148]
jb 0x1031353
push dword [ebp - 0x148]
push 0x1008b6c
push dword [ebp - 0x124]
call edi
push 0x1008b54
push dword [ebp - 0x124]
call edi
xor eax, eax
add esp, 0x14
cmp dword [ebp - 0x148], eax
jbe 0x1031436
mov ecx, dword [ebp - 0x188]
mov esi, dword [ecx + eax*4]
lea ebx, [eax + 1]
push ebx
lea eax, [ebp - 0x34]
push 0x1008780
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push esi
push dword [ebp - 0x13c]
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x124]
call fcn.0102df40
mov esi, eax
test esi, esi
jne 0x103159c
mov eax, ebx
cmp eax, dword [ebp - 0x148]
jb 0x10313ed
push 0x1008b34
push dword [ebp - 0x124]
call edi
xor eax, eax
cmp dword [ebp - 0x148], eax
pop ecx
pop ecx
jbe 0x10314c2
mov ecx, dword [ebp - 0x188]
mov ebx, dword [ecx + eax*4]
inc eax
push eax
mov dword [ebp - 0x12c], eax
lea eax, [ebp - 0x34]
push 0x1008780
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push dword [ebx + 8]
lea eax, [ebp - 0x120]
push dword [ebx + 4]
push eax
lea eax, [ebp - 0x34]
push eax
push 0x10087b8
push dword [ebp - 0x124]
call fcn.0102e015
mov esi, eax
test esi, esi
jne 0x10315a7
push 0xffffffffffffffff
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.0102aa93
mov esi, eax
test esi, esi
jne 0x10315b2
mov eax, dword [ebp - 0x12c]
cmp eax, dword [ebp - 0x148]
jb 0x103144f
xor eax, eax
cmp dword [ebp - 0x140], eax
jbe 0x103153f
mov ecx, dword [ebp - 0x180]
mov ebx, dword [ecx + eax*4]
inc eax
push eax
mov dword [ebp - 0x12c], eax
lea eax, [ebp - 0x74]
push 0x1008550
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push dword [ebx + 8]
lea eax, [ebp - 0x120]
push dword [ebx + 4]
push eax
lea eax, [ebp - 0x74]
push eax
push 0x10087b8
push dword [ebp - 0x124]
call fcn.0102e015
mov esi, eax
test esi, esi
jne 0x10315bd
push 0xffffffffffffffff
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.0102aa93
mov esi, eax
test esi, esi
jne 0x10315c8
mov eax, dword [ebp - 0x12c]
cmp eax, dword [ebp - 0x140]
jb 0x10314cc
push 0x1008b1c
push dword [ebp - 0x124]
call edi
mov eax, dword [ebp - 0x188]
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 0x1008988
push 0x10087ec
push dword [ebp - 0x124]
call fcn.0102e015
mov esi, eax
test esi, esi
je 0x10315d3
push esi
push 0x19a4013e
jmp 0x10317ed
push esi
push 0x1962013e
jmp 0x10317ed
push esi
push 0x196d013e
jmp 0x10317ed
push esi
push 0x1980013e
jmp 0x10317ed
push esi
push 0x1983013e
jmp 0x10317ed
push esi
push 0x1994013e
jmp 0x10317ed
push esi
push 0x1997013e
jmp 0x10317ed
push 0xffffffffffffffff
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.0102aa93
mov esi, eax
test esi, esi
je 0x10315f1
push esi
push 0x19a7013e
jmp 0x10317ed
push 0x1008b14
push dword [ebp - 0x124]
call edi
mov eax, dword [ebp - 0x13c]
test eax, eax
pop ecx
pop ecx
je 0x103160f
mov ecx, dword [eax + 8]
jmp 0x1031611
xor ecx, ecx
test eax, eax
je 0x103161a
mov eax, dword [eax + 4]
jmp 0x103161c
xor eax, eax
push ecx
push eax
lea eax, [ebp - 0x120]
push eax
push 0x1008988
push 0x1003220
push dword [ebp - 0x124]
call fcn.0102e015
mov esi, eax
test esi, esi
je 0x103164b
push esi
push 0x19b3013e
jmp 0x10317ed
push 0xffffffffffffffff
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.0102aa93
mov esi, eax
test esi, esi
je 0x1031669
push esi
push 0x19b6013e
jmp 0x10317ed
push 0x1008afc
push dword [ebp - 0x124]
call edi
pop ecx
pop ecx
push 0x1008aec
lea eax, [ebp - 0x120]
push eax
push 0x1008734
mov ebx, 0x100870c
push ebx
push dword [ebp - 0x124]
call fcn.0102e1b8
mov esi, eax
test esi, esi
je 0x10316ab
push esi
push 0x19c0013e
jmp 0x10317ed
mov eax, dword [ebp + 0x18]
dec eax
neg eax
sbb eax, eax
and eax, 0x1000000
push eax
lea eax, [ebp - 0x120]
push eax
push 0x10086f8
push ebx
push dword [ebp - 0x124]
call fcn.0102e234
mov esi, eax
test esi, esi
je 0x10316e2
push esi
push 0x19ca013e
jmp 0x10317ed
xor esi, esi
cmp dword [ebp - 0x144], esi
jne 0x10316f8
cmp dword [ebp - 0x140], esi
je 0x1031965
push 0x1008ae0
push dword [ebp - 0x124]
call edi
cmp dword [ebp - 0x144], esi
pop ecx
pop ecx
je 0x10317a8
mov eax, dword [ebp - 0x184]
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 0x100864c
push 0x10086c4
push dword [ebp - 0x124]
call fcn.0102e015
mov esi, eax
test esi, esi
je 0x1031756
push esi
push 0x19de013e
jmp 0x10317ed
push 0xffffffffffffffff
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.0102aa93
mov esi, eax
test esi, esi
je 0x1031771
push esi
push 0x19e1013e
jmp 0x10317ed
push 0x9c4
push 2
push 0x2400
push ebx
lea eax, [ebp - 0x120]
push eax
push 0x10085bc
push 0x10086c4
push dword [ebp - 0x124]
call fcn.0102e400
mov esi, eax
test esi, esi
je 0x10317a8
push esi
push 0x19ee013e
jmp 0x10317ed
cmp dword [ebp - 0x140], 0
je 0x10317f7
push dword [ebp - 0x180]
lea eax, [ebp - 0x120]
push dword [ebp - 0x140]
push dword [ebp - 0x188]
push 0
push eax
push 0x1008810
push 0x10086c4
push dword [ebp - 0x124]
call fcn.0102e6b0
mov esi, eax
test esi, esi
je 0x10317f7
push esi
push 0x19fe013e
call fcn.01053610
jmp 0x1031a59
push dword [ebp - 0x140]
push 0x1008b6c
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]
test eax, eax
mov dword [ebp - 0x160], eax
jne 0x103183e
call fcn.0106d6ff
mov esi, eax
push esi
push 0x1a0f013e
jmp 0x1031a3d
mov esi, dword [sym.imp.CRYPT32.dll_CertSaveStore]
jmp 0x103186b
cmp dword [ebp - 0x16c], 0
push dword [ebp - 0x170]
jne 0x1031896
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [ebp - 0x16c], eax
je 0x1031a32
push 0
lea eax, [ebp - 0x170]
push eax
push 2
push ebx
push ebx
push dword [ebp - 0x160]
call esi
test eax, eax
jne 0x1031846
call fcn.0106d6ff
mov esi, eax
push esi
push 0x1a1c013e
jmp 0x1031a3d
push dword [ebp - 0x16c]
lea eax, [ebp - 0x120]
push eax
push 0x1008444
mov ebx, 0x10086c4
push ebx
push dword [ebp - 0x124]
call fcn.0102e015
mov esi, eax
test esi, esi
je 0x10318ca
push esi
push 0x1a30013e
jmp 0x1031a3d
mov ecx, dword [ebp - 0x144]
xor eax, eax
test ecx, ecx
je 0x10318de
mov eax, dword [ebp - 0x184]
jmp 0x10318ee
mov ecx, dword [ebp - 0x140]
test ecx, ecx
je 0x10318f2
mov eax, dword [ebp - 0x180]
mov eax, dword [eax + ecx*4 - 4]
lea ecx, [ebp - 0x168]
push ecx
push dword [ebp - 0x19c]
push 0
push eax
push dword [ebp - 0x128]
call fcn.010308fd
mov esi, eax
test esi, esi
je 0x103191e
push esi
push 0x1a3e013e
jmp 0x1031a3d
mov eax, dword [ebp - 0x168]
test eax, eax
je 0x103192d
mov ecx, dword [eax + 8]
jmp 0x103192f
xor ecx, ecx
test eax, eax
je 0x1031938
mov eax, dword [eax + 4]
jmp 0x103193a
xor eax, eax
push ecx
push eax
lea eax, [ebp - 0x120]
push eax
push 0x1008414
push ebx
push dword [ebp - 0x124]
call fcn.0102e015
mov esi, eax
test esi, esi
je 0x1031965
push esi
push 0x1a47013e
jmp 0x1031a3d
cmp dword [ebp + 0x18], 0
jne 0x10319f3
push 0x1008b34
push dword [ebp - 0x124]
call edi
xor eax, eax
cmp dword [ebp - 0x140], eax
pop ecx
pop ecx
jbe 0x10319f3
mov ecx, dword [ebp - 0x180]
mov ebx, dword [ecx + eax*4]
inc eax
push eax
mov dword [ebp - 0x12c], eax
lea eax, [ebp - 0x74]
push 0x1008550
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push dword [ebx + 8]
lea eax, [ebp - 0x120]
push dword [ebx + 4]
push eax
lea eax, [ebp - 0x74]
push eax
push 0x10087b8
push dword [ebp - 0x124]
call fcn.0102e015
mov esi, eax
test esi, esi
jne 0x1031a1e
push 0xffffffffffffffff
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.0102aa93
mov esi, eax
test esi, esi
jne 0x1031a26
mov eax, dword [ebp - 0x12c]
cmp eax, dword [ebp - 0x140]
jb 0x1031988
mov esi, dword [ebp - 0x124]
push 0x1007fa0
push esi
call edi
push esi
call dword [sym.imp.msvcrt.dll_fflush]
add esp, 0xc
test byte [esi + 0xc], 0x20
je 0x1031a2e
mov esi, 0x80070070
push esi
push 0x1a6a013e
jmp 0x1031a3d
push esi
push 0x1a5c013e
jmp 0x1031a3d
push esi
push 0x1a62013e
jmp 0x1031a3d
xor esi, esi
jmp 0x1031a42
mov esi, 0x8007000e
push esi
push 0x1a26013e
call fcn.01053610
cmp dword [ebp - 0x160], 0
je 0x1031a59
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 - 0x18c]
call fcn.0102dad3
add edi, 4
cmp edi, 0x10
jb 0x1031a5d
cmp dword [ebp - 0x13c], ebx
mov edi, dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
je 0x1031a8e
push dword [ebp - 0x13c]
call edi
cmp dword [ebp - 0x168], ebx
je 0x1031a9e
push dword [ebp - 0x168]
call edi
cmp dword [ebp - 0x124], ebx
je 0x1031ab3
push dword [ebp - 0x124]
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
cmp dword [ebp - 0x138], ebx
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
je 0x1031ac9
push dword [ebp - 0x138]
call edi
cmp dword [ebp - 0x154], ebx
je 0x1031ad9
push dword [ebp - 0x154]
call edi
cmp dword [ebp - 0x130], ebx
je 0x1031ae9
push dword [ebp - 0x130]
call edi
cmp dword [ebp - 0x150], ebx
je 0x1031af9
push dword [ebp - 0x150]
call edi
cmp dword [ebp - 0x178], ebx
je 0x1031b09
push dword [ebp - 0x178]
call edi
cmp dword [ebp - 0x174], ebx
je 0x1031b19
push dword [ebp - 0x174]
call edi
cmp dword [ebp - 0x158], ebx
je 0x1031b29
push dword [ebp - 0x158]
call edi
cmp dword [ebp - 0x16c], ebx
je 0x1031b39
push dword [ebp - 0x16c]
call edi
cmp dword [ebp - 0x11c], ebx
je 0x1031b4d
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp - 0x17c], ebx
mov edi, dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
je 0x1031b64
push ebx
push dword [ebp - 0x17c]
call edi
cmp dword [ebp - 0x164], ebx
je 0x1031b75
push ebx
push dword [ebp - 0x164]
call edi
mov eax, dword [ebp - 0x194]
mov ecx, dword [ebp - 4]
pop edi
mov dword [0x107b268], eax
mov eax, esi
pop esi
pop ebx
call fcn.0104b509
leave
ret 0x18