Function at 0x104579d
Capabilities:
Generate random numbers via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1a4
mov eax, dword [0x10b5894]
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 [0x10b75ac]
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.01041c0d
cmp eax, ebx
je 0x10458ae
push 0x80092004
push eax
push 0x186a013e
call fcn.0107ae61
mov edi, dword [edi]
add dword [ebp - 0x128], edi
cmp edi, ebx
je 0x1045926
cmp esi, ebx
je 0x10458cf
cmp esi, 2
je 0x10458cf
push 0x100abb8
push 0x990
jmp 0x10458d9
push 0x100ac98
push 0x98f
call fcn.0104169f
cmp esi, ebx
mov dword [ebp - 0x12c], eax
je 0x10458f7
cmp esi, 1
mov dword [ebp - 0x15c], 3
jne 0x1045901
mov dword [ebp - 0x15c], 1
push edi
push 0x98e
call fcn.0107a681
push eax
push dword [ebp - 0x12c]
push dword [ebp - 0x15c]
push 0x100b0d8
call fcn.0108880b
add esp, 0x14
inc esi
cmp esi, 4
jb 0x104587e
cmp dword [ebp - 0x128], ebx
jne 0x104594d
mov esi, 0x80092004
push esi
push 0x187c013e
call fcn.0107ae44
jmp 0x1046620
mov dword [ebp - 0x12c], ebx
mov ecx, dword [ebp - 0x12c]
shl ecx, 2
mov eax, dword [ebp + ecx - 0x14c]
cmp eax, ebx
mov dword [ebp - 0x15c], eax
je 0x1045a7e
cmp eax, ebx
mov dword [ebp - 0x128], ebx
jbe 0x1045a7e
mov edi, dword [ebp + ecx - 0x188]
cmp dword [ebp - 0x138], ebx
je 0x10459a0
push dword [ebp - 0x138]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x138], ebx
cmp dword [ebp - 0x134], ebx
je 0x10459ba
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.01041de4
mov esi, eax
cmp esi, ebx
jne 0x1045ab9
cmp dword [0x10b759c], ebx
mov esi, dword [ebp - 0x138]
je 0x1045a1d
push esi
push dword [ebp - 0x128]
push dword [ebp - 0x12c]
push 0x100b0b4
call fcn.0108880b
push dword [ebp - 0x134]
push dword [ebp - 0x128]
push dword [ebp - 0x12c]
push 0x100b090
call fcn.0108880b
add esp, 0x20
cmp dword [ebp - 0x154], ebx
jne 0x1045a31
mov dword [ebp - 0x154], esi
mov dword [ebp - 0x138], ebx
cmp dword [ebp - 0x150], ebx
jne 0x1045a4d
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x134], ebx
jmp 0x1045a63
push dword [ebp - 0x134]
push dword [ebp - 0x150]
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1045ac4
inc dword [ebp - 0x128]
mov eax, dword [ebp - 0x128]
add edi, 4
cmp eax, dword [ebp - 0x15c]
jb 0x1045986
inc dword [ebp - 0x12c]
cmp dword [ebp - 0x12c], 4
jb 0x1045953
push 0xffffffffffffffff
push dword [ebp - 0x1a4]
lea eax, [ebp - 0x158]
push eax
call fcn.010a50e9
test eax, eax
jne 0x1045af0
mov esi, 0x8007000e
push esi
push 0x18b4013e
jmp 0x1045943
push esi
push 0x1894013e
jmp 0x1045943
mov esi, 0x8007000d
push esi
push 0x18aa013e
push dword [ebp - 0x134]
call fcn.0107ae7f
push esi
push 0x18ab013e
push dword [ebp - 0x150]
call fcn.0107ae7f
jmp 0x1046620
push 0xf0000000
push 1
push 0x100a490
push ebx
lea eax, [ebp - 0x164]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1045b20
call fcn.010a4804
mov esi, eax
push esi
push 0x18bf013e
jmp 0x1045943
cmp dword [ebp - 0x130], ebx
je 0x1045b70
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 0x1045b57
push esi
push 0x18cc013e
jmp 0x1045943
cmp dword [ebp - 0x190], 0x14
je 0x1045bc7
mov esi, 0x80070057
push esi
push 0x18d1013e
jmp 0x1045943
lea eax, [ebp - 0x48]
push eax
push 0x14
push dword [ebp - 0x164]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x1045b98
call fcn.010a4804
mov esi, eax
push esi
push 0x18d9013e
jmp 0x1045943
lea eax, [ebp - 0x16c]
push eax
push 0x14
lea eax, [ebp - 0x48]
push eax
call fcn.01041ead
mov esi, eax
cmp esi, ebx
je 0x1045bbb
push esi
push 0x18df013e
jmp 0x1045943
mov eax, dword [ebp - 0x16c]
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x14c]
cmp eax, ebx
mov ecx, dword [ebp - 0x148]
mov dword [ebp - 0x128], ebx
je 0x1045be9
mov ecx, dword [ebp - 0x188]
mov eax, dword [ecx + eax*4 - 4]
jmp 0x1045bf7
cmp ecx, ebx
je 0x1045c0d
mov eax, dword [ebp - 0x184]
mov eax, dword [eax + ecx*4 - 4]
cmp eax, ebx
mov dword [ebp - 0x128], eax
je 0x1045c0d
cmp dword [ebp + 0x18], ebx
jne 0x1045c0d
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.01042616
mov esi, eax
cmp esi, ebx
je 0x1045c4b
push esi
push 0x18f9013e
jmp 0x1045943
push 8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.0103fa16
mov esi, eax
cmp esi, ebx
je 0x1045c6e
push esi
push 0x18fc013e
jmp 0x1045943
cmp dword [0x10b7598], ebx
mov esi, dword [sym.imp.msvcrt.dll_fopen]
jne 0x1045ca5
push 0x100a7a0
push dword [ebp - 0x158]
call esi
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0x124], eax
je 0x1045ca5
mov esi, 0x800700b7
push esi
push 0x1904013e
jmp 0x1045943
push 0x100a76c
push dword [ebp - 0x158]
call esi
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0x124], esi
jne 0x1045cd0
mov esi, 0x80010137
push esi
push 0x190b013e
jmp 0x1045943
mov edi, dword [sym.imp.msvcrt.dll_fprintf]
push 0x100b07c
push esi
call edi
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0xffffffc0
add eax, 0x80
push eax
push 0x100b06c
push esi
call edi
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
add eax, 3
push eax
push 0x100b058
push esi
call edi
add esp, 0x20
cmp dword [ebp + 0x18], ebx
je 0x1045d1b
push 0x100b050
push esi
call edi
pop ecx
pop ecx
push 0x100b048
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 0x100b040
push esi
call edi
add esp, 0xc
inc dword [ebp - 0x12c]
cmp dword [ebp - 0x12c], 8
jb 0x1045d2b
push 0x100a730
push esi
call edi
push dword [ebp - 0x130]
push 0x100b030
push esi
call edi
push 0x100b024
push esi
call edi
push 0x100b010
push esi
call edi
push dword [ebp - 0x154]
push 0x100b000
push esi
call edi
add esp, 0x30
call fcn.0103f874
cmp dword [0x10b759c], ebx
jne 0x1045d9f
mov dword [0x10b75ac], 1
xor ebx, ebx
cmp dword [ebp + 0x18], ebx
je 0x1046299
cmp dword [ebp - 0x14c], ebx
jne 0x1045e1c
cmp dword [ebp - 0x128], ebx
je 0x1045ec2
push 4
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [ebp - 0x188], eax
jne 0x1045de2
mov esi, 0x8007000e
push esi
push 0x1933013e
jmp 0x1045943
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x170]
push eax
push dword [ebp - 0x188]
push dword [ebp - 0x128]
call fcn.010415af
mov esi, eax
test esi, esi
je 0x1045e12
push esi
push 0x193a013e
jmp 0x1045943
mov dword [ebp - 0x14c], 1
mov eax, dword [ebp - 0x188]
mov ecx, dword [ebp - 0x14c]
mov ebx, dword [eax + ecx*4 - 4]
push 0x100afe8
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 0x100ade0
push 0x100adbc
push dword [ebp - 0x124]
call fcn.010449ea
mov esi, eax
test esi, esi
je 0x1045e6e
push esi
push 0x194a013e
jmp 0x1045943
push 0xffffffffffffffff
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.0103ebd3
mov esi, eax
test esi, esi
je 0x1045e8c
push esi
push 0x194d013e
jmp 0x1045943
push 2
push dword [ebp - 0x170]
lea eax, [ebp - 0x120]
push ebx
push eax
push 0x100ad28
push 0x100adbc
push dword [ebp - 0x124]
call fcn.01044e94
mov esi, eax
test esi, esi
je 0x1045ec2
push esi
push 0x1959013e
jmp 0x1045943
cmp dword [ebp - 0x13c], 0
jne 0x1045ef4
lea eax, [ebp - 0x13c]
push eax
push 0
push 1
push 0
push dword [ebp - 0x128]
call fcn.010454ea
mov esi, eax
test esi, esi
je 0x1045ef4
push esi
push 0x195f013e
jmp 0x1045943
cmp dword [ebp - 0x148], 0
je 0x10461a8
push 0x100afd4
push dword [ebp - 0x124]
call edi
xor eax, eax
cmp dword [ebp - 0x148], eax
pop ecx
pop ecx
jbe 0x1045f74
mov ecx, dword [ebp - 0x184]
mov esi, dword [ecx + eax*4]
lea ebx, [eax + 1]
push ebx
push 0x100abcc
lea eax, [ebp - 0x98]
push 0x24
push eax
call fcn.0102d885
add esp, 0x10
push 1
push 0
push esi
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x98]
push eax
push 0x100ac68
push dword [ebp - 0x124]
call fcn.01044e94
mov esi, eax
test esi, esi
jne 0x1046148
mov eax, ebx
cmp eax, dword [ebp - 0x148]
jb 0x1045f1a
push dword [ebp - 0x148]
push 0x100afc4
push dword [ebp - 0x124]
call edi
push 0x100afac
push dword [ebp - 0x124]
call edi
xor eax, eax
add esp, 0x14
cmp dword [ebp - 0x148], eax
jbe 0x1045feb
mov ecx, dword [ebp - 0x184]
mov esi, dword [ecx + eax*4]
lea ebx, [eax + 1]
push ebx
push 0x100abd8
lea eax, [ebp - 0x34]
push 0x26
push eax
call fcn.0102d885
add esp, 0x10
push esi
push dword [ebp - 0x13c]
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x124]
call fcn.01044917
mov esi, eax
test esi, esi
jne 0x1046153
mov eax, ebx
cmp eax, dword [ebp - 0x148]
jb 0x1045fa1
push 0x100af8c
push dword [ebp - 0x124]
call edi
xor eax, eax
cmp dword [ebp - 0x148], eax
pop ecx
pop ecx
jbe 0x1046078
mov ecx, dword [ebp - 0x184]
mov ebx, dword [ecx + eax*4]
inc eax
push eax
push 0x100abd8
mov dword [ebp - 0x130], eax
lea eax, [ebp - 0x34]
push 0x26
push eax
call fcn.0102d885
add esp, 0x10
push dword [ebx + 8]
lea eax, [ebp - 0x120]
push dword [ebx + 4]
push eax
lea eax, [ebp - 0x34]
push eax
push 0x100ac10
push dword [ebp - 0x124]
call fcn.010449ea
mov esi, eax
test esi, esi
jne 0x104615e
push 0xffffffffffffffff
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.0103ebd3
mov esi, eax
test esi, esi
jne 0x1046169
mov eax, dword [ebp - 0x130]
cmp eax, dword [ebp - 0x148]
jb 0x1046004
xor eax, eax
cmp dword [ebp - 0x140], eax
jbe 0x10460f6
mov ecx, dword [ebp - 0x17c]
mov ebx, dword [ecx + eax*4]
inc eax
push eax
push 0x100a9a8
mov dword [ebp - 0x130], eax
lea eax, [ebp - 0x74]
push 0x2a
push eax
call fcn.0102d885
add esp, 0x10
push dword [ebx + 8]
lea eax, [ebp - 0x120]
push dword [ebx + 4]
push eax
lea eax, [ebp - 0x74]
push eax
push 0x100ac10
push dword [ebp - 0x124]
call fcn.010449ea
mov esi, eax
test esi, esi
jne 0x1046174
push 0xffffffffffffffff
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.0103ebd3
mov esi, eax
test esi, esi
jne 0x104617f
mov eax, dword [ebp - 0x130]
cmp eax, dword [ebp - 0x140]
jb 0x1046082
push 0x100af74
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 0x100ade0
push 0x100ac44
push dword [ebp - 0x124]
call fcn.010449ea
mov esi, eax
test esi, esi
je 0x104618a
push esi
push 0x19b8013e
jmp 0x1045943
push esi
push 0x1976013e
jmp 0x1045943
push esi
push 0x1981013e
jmp 0x1045943
push esi
push 0x1994013e
jmp 0x1045943
push esi
push 0x1997013e
jmp 0x1045943
push esi
push 0x19a8013e
jmp 0x1045943
push esi
push 0x19ab013e
jmp 0x1045943
push 0xffffffffffffffff
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.0103ebd3
mov esi, eax
test esi, esi
je 0x10461a8
push esi
push 0x19bb013e
jmp 0x1045943
push 0x100af6c
push dword [ebp - 0x124]
call edi
mov eax, dword [ebp - 0x13c]
test eax, eax
pop ecx
pop ecx
je 0x10461c6
mov ecx, dword [eax + 8]
jmp 0x10461c8
xor ecx, ecx
test eax, eax
je 0x10461d1
mov eax, dword [eax + 4]
jmp 0x10461d3
xor eax, eax
push ecx
push eax
lea eax, [ebp - 0x120]
push eax
push 0x100ade0
push 0x1003a44
push dword [ebp - 0x124]
call fcn.010449ea
mov esi, eax
test esi, esi
je 0x1046202
push esi
push 0x19c7013e
jmp 0x1045943
push 0xffffffffffffffff
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.0103ebd3
mov esi, eax
test esi, esi
je 0x1046220
push esi
push 0x19ca013e
jmp 0x1045943
push 0x100af54
push dword [ebp - 0x124]
call edi
pop ecx
pop ecx
push 0x100af44
lea eax, [ebp - 0x120]
push eax
push 0x100ab8c
mov ebx, 0x100ab64
push ebx
push dword [ebp - 0x124]
call fcn.01044ba1
mov esi, eax
test esi, esi
je 0x1046262
push esi
push 0x19d4013e
jmp 0x1045943
mov eax, dword [ebp + 0x18]
dec eax
neg eax
sbb eax, eax
and eax, 0x1000000
push eax
lea eax, [ebp - 0x120]
push eax
push 0x100ab50
push ebx
push dword [ebp - 0x124]
call fcn.01044c1d
mov esi, eax
test esi, esi
je 0x1046299
push esi
push 0x19de013e
jmp 0x1045943
xor esi, esi
cmp dword [ebp - 0x144], esi
jne 0x10462af
cmp dword [ebp - 0x140], esi
je 0x104651d
push 0x100af38
push dword [ebp - 0x124]
call edi
cmp dword [ebp - 0x144], esi
pop ecx
pop ecx
je 0x1046365
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 0x100aaa4
push 0x100ab1c
push dword [ebp - 0x124]
call fcn.010449ea
mov esi, eax
test esi, esi
je 0x104630d
push esi
push 0x19f2013e
jmp 0x1045943
push 0xffffffffffffffff
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.0103ebd3
mov esi, eax
test esi, esi
je 0x104632b
push esi
push 0x19f5013e
jmp 0x1045943
push 0x9c4
push 2
push 0x2400
push ebx
lea eax, [ebp - 0x120]
push eax
push 0x100aa14
push 0x100ab1c
push dword [ebp - 0x124]
call fcn.01044c57
mov esi, eax
test esi, esi
je 0x1046365
push esi
push 0x1a02013e
jmp 0x1045943
cmp dword [ebp - 0x140], 0
je 0x10463af
push dword [ebp - 0x17c]
lea eax, [ebp - 0x120]
push dword [ebp - 0x140]
push dword [ebp - 0x184]
push 0
push eax
push 0x100ac68
push 0x100ab1c
push dword [ebp - 0x124]
call fcn.01044f2d
mov esi, eax
test esi, esi
je 0x10463af
push esi
push 0x1a12013e
jmp 0x1045943
push dword [ebp - 0x140]
push 0x100afc4
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 0x10463f6
call fcn.010a4804
mov esi, eax
push esi
push 0x1a23013e
jmp 0x1046604
mov esi, dword [sym.imp.CRYPT32.dll_CertSaveStore]
jmp 0x1046423
cmp dword [ebp - 0x174], 0
push dword [ebp - 0x178]
jne 0x104644e
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [ebp - 0x174], eax
je 0x10465f9
push 0
lea eax, [ebp - 0x178]
push eax
push 2
push ebx
push ebx
push dword [ebp - 0x160]
call esi
test eax, eax
jne 0x10463fe
call fcn.010a4804
mov esi, eax
push esi
push 0x1a30013e
jmp 0x1046604
push dword [ebp - 0x174]
lea eax, [ebp - 0x120]
push eax
push 0x100a89c
mov ebx, 0x100ab1c
push ebx
push dword [ebp - 0x124]
call fcn.010449ea
mov esi, eax
test esi, esi
je 0x1046482
push esi
push 0x1a44013e
jmp 0x1046604
mov ecx, dword [ebp - 0x144]
xor eax, eax
test ecx, ecx
je 0x1046496
mov eax, dword [ebp - 0x180]
jmp 0x10464a6
mov ecx, dword [ebp - 0x140]
test ecx, ecx
je 0x10464aa
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.010454ea
mov esi, eax
test esi, esi
je 0x10464d6
push esi
push 0x1a52013e
jmp 0x1046604
mov eax, dword [ebp - 0x168]
test eax, eax
je 0x10464e5
mov ecx, dword [eax + 8]
jmp 0x10464e7
xor ecx, ecx
test eax, eax
je 0x10464f0
mov eax, dword [eax + 4]
jmp 0x10464f2
xor eax, eax
push ecx
push eax
lea eax, [ebp - 0x120]
push eax
push 0x100a86c
push ebx
push dword [ebp - 0x124]
call fcn.010449ea
mov esi, eax
test esi, esi
je 0x104651d
push esi
push 0x1a5b013e
jmp 0x1046604
cmp dword [ebp + 0x18], 0
jne 0x10465ac
push 0x100af8c
push dword [ebp - 0x124]
call edi
xor eax, eax
cmp dword [ebp - 0x140], eax
pop ecx
pop ecx
jbe 0x10465ac
mov ecx, dword [ebp - 0x17c]
mov ebx, dword [ecx + eax*4]
inc eax
push eax
push 0x100a9a8
mov dword [ebp - 0x130], eax
lea eax, [ebp - 0x74]
push 0x2a
push eax
call fcn.0102d885
add esp, 0x10
push dword [ebx + 8]
lea eax, [ebp - 0x120]
push dword [ebx + 4]
push eax
lea eax, [ebp - 0x74]
push eax
push 0x100ac10
push dword [ebp - 0x124]
call fcn.010449ea
mov esi, eax
test esi, esi
jne 0x10465e5
push 0xffffffffffffffff
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.0103ebd3
mov esi, eax
test esi, esi
jne 0x10465ed
mov eax, dword [ebp - 0x130]
cmp eax, dword [ebp - 0x140]
jb 0x1046540
push 0x100a730
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 0x10465f5
mov esi, 0x80070070
push esi
push 0x1a7e013e
jmp 0x1046604
push esi
push 0x1a70013e
jmp 0x1046604
push esi
push 0x1a76013e
jmp 0x1046604
xor esi, esi
jmp 0x1046609
mov esi, 0x8007000e
push esi
push 0x1a3a013e
call fcn.0107ae44
cmp dword [ebp - 0x160], 0
je 0x1046620
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.01041b4e
add edi, 4
cmp edi, 0x10
jb 0x1046624
cmp dword [ebp - 0x13c], ebx
mov edi, dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
je 0x1046655
push dword [ebp - 0x13c]
call edi
cmp dword [ebp - 0x168], ebx
je 0x1046665
push dword [ebp - 0x168]
call edi
cmp dword [ebp - 0x124], ebx
je 0x104667a
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 0x1046690
push dword [ebp - 0x138]
call edi
cmp dword [ebp - 0x154], ebx
je 0x10466a0
push dword [ebp - 0x154]
call edi
cmp dword [ebp - 0x134], ebx
je 0x10466b0
push dword [ebp - 0x134]
call edi
cmp dword [ebp - 0x150], ebx
je 0x10466c0
push dword [ebp - 0x150]
call edi
cmp dword [ebp - 0x18c], ebx
je 0x10466d0
push dword [ebp - 0x18c]
call edi
cmp dword [ebp - 0x16c], ebx
je 0x10466e0
push dword [ebp - 0x16c]
call edi
cmp dword [ebp - 0x158], ebx
je 0x10466f0
push dword [ebp - 0x158]
call edi
cmp dword [ebp - 0x174], ebx
je 0x1046700
push dword [ebp - 0x174]
call edi
cmp dword [ebp - 0x11c], ebx
je 0x1046714
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp - 0x170], ebx
mov edi, dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
je 0x104672b
push ebx
push dword [ebp - 0x170]
call edi
cmp dword [ebp - 0x164], ebx
je 0x104673c
push ebx
push dword [ebp - 0x164]
call edi
mov eax, dword [ebp - 0x194]
mov ecx, dword [ebp - 4]
pop edi
mov dword [0x10b75ac], eax
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01068363
leave
ret 0x18