Function at 0x104c79f
Capabilities:
Generate random numbers via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1a4
mov eax, dword [0x10d0640]
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 [0x10d22b4]
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.01048980
cmp eax, ebx
je 0x104c8b0
push 0x80092004
push eax
push 0x1899013e
call fcn.0108c520
mov edi, dword [edi]
add dword [ebp - 0x128], edi
cmp edi, ebx
je 0x104c928
cmp esi, ebx
je 0x104c8d1
cmp esi, 2
je 0x104c8d1
push 0x100b6e0
push 0x990
jmp 0x104c8db
push 0x100b7c0
push 0x98f
call fcn.01048560
mov dword [ebp - 0x12c], eax
cmp esi, ebx
je 0x104c8f9
mov dword [ebp - 0x15c], 3
cmp esi, 1
jne 0x104c903
mov dword [ebp - 0x15c], 1
push edi
push 0x98e
call fcn.0108bbbd
push eax
push dword [ebp - 0x12c]
push dword [ebp - 0x15c]
push 0x100bc00
call fcn.0109c1c3
add esp, 0x14
inc esi
cmp esi, 4
jb 0x104c880
cmp dword [ebp - 0x128], ebx
jne 0x104c94f
mov esi, 0x80092004
push esi
push 0x18ab013e
call fcn.0108c503
jmp 0x104d620
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 0x104ca80
mov dword [ebp - 0x128], ebx
cmp eax, ebx
jbe 0x104ca80
mov edi, dword [ebp + ecx - 0x188]
cmp dword [ebp - 0x138], ebx
je 0x104c9a2
push dword [ebp - 0x138]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x138], ebx
cmp dword [ebp - 0x134], ebx
je 0x104c9bc
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.01048b57
mov esi, eax
cmp esi, ebx
jne 0x104cabb
mov esi, dword [ebp - 0x138]
cmp dword [0x10d22a4], ebx
je 0x104ca1f
push esi
push dword [ebp - 0x128]
push dword [ebp - 0x12c]
push 0x100bbdc
call fcn.0109c1c3
push dword [ebp - 0x134]
push dword [ebp - 0x128]
push dword [ebp - 0x12c]
push 0x100bbb8
call fcn.0109c1c3
add esp, 0x20
cmp dword [ebp - 0x154], ebx
jne 0x104ca33
mov dword [ebp - 0x154], esi
mov dword [ebp - 0x138], ebx
cmp dword [ebp - 0x150], ebx
jne 0x104ca4f
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x134], ebx
jmp 0x104ca65
push dword [ebp - 0x134]
push dword [ebp - 0x150]
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x104cac6
inc dword [ebp - 0x128]
mov eax, dword [ebp - 0x128]
add edi, 4
cmp eax, dword [ebp - 0x15c]
jb 0x104c988
inc dword [ebp - 0x12c]
cmp dword [ebp - 0x12c], 4
jb 0x104c955
push 0xffffffffffffffff
push dword [ebp - 0x1a4]
lea eax, [ebp - 0x158]
push eax
call fcn.01092a2b
test eax, eax
jne 0x104caf2
mov esi, 0x8007000e
push esi
push 0x18e3013e
jmp 0x104c945
push esi
push 0x18c3013e
jmp 0x104c945
mov esi, 0x8007000d
push esi
push 0x18d9013e
push dword [ebp - 0x134]
call fcn.0108c53e
push esi
push 0x18da013e
push dword [ebp - 0x150]
call fcn.0108c53e
jmp 0x104d620
push 0xf0000000
push 1
push 0x100afc0
push ebx
lea eax, [ebp - 0x164]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x104cb22
call fcn.01091f1e
mov esi, eax
push esi
push 0x18ee013e
jmp 0x104c945
cmp dword [ebp - 0x130], ebx
je 0x104cb72
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 0x104cb59
push esi
push 0x18fb013e
jmp 0x104c945
cmp dword [ebp - 0x190], 0x14
je 0x104cbc9
mov esi, 0x80070057
push esi
push 0x1900013e
jmp 0x104c945
lea eax, [ebp - 0x48]
push eax
push 0x14
push dword [ebp - 0x164]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x104cb9a
call fcn.01091f1e
mov esi, eax
push esi
push 0x1908013e
jmp 0x104c945
lea eax, [ebp - 0x16c]
push eax
push 0x14
lea eax, [ebp - 0x48]
push eax
call fcn.01048c20
mov esi, eax
cmp esi, ebx
je 0x104cbbd
push esi
push 0x190e013e
jmp 0x104c945
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 0x104cbeb
mov ecx, dword [ebp - 0x188]
mov eax, dword [ecx + eax*4 - 4]
jmp 0x104cbf9
cmp ecx, ebx
je 0x104cc0f
mov eax, dword [ebp - 0x184]
mov eax, dword [eax + ecx*4 - 4]
mov dword [ebp - 0x128], eax
cmp eax, ebx
je 0x104cc0f
cmp dword [ebp + 0x18], ebx
jne 0x104cc0f
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.01049c83
mov esi, eax
cmp esi, ebx
je 0x104cc4d
push esi
push 0x1928013e
jmp 0x104c945
push 8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.0104692f
mov esi, eax
cmp esi, ebx
je 0x104cc70
push esi
push 0x192b013e
jmp 0x104c945
mov esi, dword [sym.imp.msvcrt.dll_fopen]
cmp dword [0x10d22a0], ebx
jne 0x104cca7
push 0x100b2c8
push dword [ebp - 0x158]
call esi
pop ecx
pop ecx
mov dword [ebp - 0x124], eax
cmp eax, ebx
je 0x104cca7
mov esi, 0x800700b7
push esi
push 0x1933013e
jmp 0x104c945
push 0x100b294
push dword [ebp - 0x158]
call esi
mov esi, eax
pop ecx
pop ecx
mov dword [ebp - 0x124], esi
cmp esi, ebx
jne 0x104ccd2
mov esi, 0x80010137
push esi
push 0x193a013e
jmp 0x104c945
mov edi, dword [sym.imp.msvcrt.dll_fprintf]
push 0x100bba4
push esi
call edi
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0xffffffc0
sub eax, 0xffffff80
push eax
push 0x100bb94
push esi
call edi
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
add eax, 3
push eax
push 0x100bb80
push esi
call edi
add esp, 0x20
cmp dword [ebp + 0x18], ebx
je 0x104cd1b
push 0x100bb78
push esi
call edi
pop ecx
pop ecx
push 0x100bb70
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 0x100bb68
push esi
call edi
add esp, 0xc
inc dword [ebp - 0x12c]
cmp dword [ebp - 0x12c], 8
jb 0x104cd2b
push 0x100b258
push esi
call edi
push dword [ebp - 0x130]
push 0x100bb58
push esi
call edi
push 0x100bb4c
push esi
call edi
push 0x100bb38
push esi
call edi
push dword [ebp - 0x154]
push 0x100bb28
push esi
call edi
add esp, 0x30
call fcn.0104678d
cmp dword [0x10d22a4], ebx
jne 0x104cd9f
mov dword [0x10d22b4], 1
xor ebx, ebx
cmp dword [ebp + 0x18], ebx
je 0x104d299
cmp dword [ebp - 0x14c], ebx
jne 0x104ce1c
cmp dword [ebp - 0x128], ebx
je 0x104cec2
push 4
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x188], eax
test eax, eax
jne 0x104cde2
mov esi, 0x8007000e
push esi
push 0x1962013e
jmp 0x104c945
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x170]
push eax
push dword [ebp - 0x188]
push dword [ebp - 0x128]
call fcn.01048470
mov esi, eax
test esi, esi
je 0x104ce12
push esi
push 0x1969013e
jmp 0x104c945
mov dword [ebp - 0x14c], 1
mov eax, dword [ebp - 0x188]
mov ecx, dword [ebp - 0x14c]
mov ebx, dword [eax + ecx*4 - 4]
push 0x100bb10
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 0x100b908
push 0x100b8e4
push dword [ebp - 0x124]
call fcn.0104c009
mov esi, eax
test esi, esi
je 0x104ce6e
push esi
push 0x1979013e
jmp 0x104c945
push 0xffffffffffffffff
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.01045b05
mov esi, eax
test esi, esi
je 0x104ce8c
push esi
push 0x197c013e
jmp 0x104c945
push 2
push dword [ebp - 0x170]
lea eax, [ebp - 0x120]
push ebx
push eax
push 0x100b850
push 0x100b8e4
push dword [ebp - 0x124]
call fcn.0104c4c9
mov esi, eax
test esi, esi
je 0x104cec2
push esi
push 0x1988013e
jmp 0x104c945
cmp dword [ebp - 0x13c], 0
jne 0x104cef4
lea eax, [ebp - 0x13c]
push eax
push 0
push 1
push 0
push dword [ebp - 0x128]
call fcn.010499cf
mov esi, eax
test esi, esi
je 0x104cef4
push esi
push 0x198e013e
jmp 0x104c945
cmp dword [ebp - 0x148], 0
je 0x104d1a8
push 0x100bafc
push dword [ebp - 0x124]
call edi
xor eax, eax
pop ecx
pop ecx
cmp dword [ebp - 0x148], eax
jbe 0x104cf74
mov ecx, dword [ebp - 0x184]
mov esi, dword [ecx + eax*4]
lea ebx, [eax + 1]
push ebx
push 0x100b6f4
lea eax, [ebp - 0x98]
push 0x24
push eax
call fcn.01032d94
add esp, 0x10
push 1
push 0
push esi
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x98]
push eax
push 0x100b790
push dword [ebp - 0x124]
call fcn.0104c4c9
mov esi, eax
test esi, esi
jne 0x104d148
mov eax, ebx
cmp eax, dword [ebp - 0x148]
jb 0x104cf1a
push dword [ebp - 0x148]
push 0x100baec
push dword [ebp - 0x124]
call edi
push 0x100bad4
push dword [ebp - 0x124]
call edi
xor eax, eax
add esp, 0x14
cmp dword [ebp - 0x148], eax
jbe 0x104cfeb
mov ecx, dword [ebp - 0x184]
mov esi, dword [ecx + eax*4]
lea ebx, [eax + 1]
push ebx
push 0x100b700
lea eax, [ebp - 0x34]
push 0x26
push eax
call fcn.01032d94
add esp, 0x10
push esi
push dword [ebp - 0x13c]
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x124]
call fcn.0104957c
mov esi, eax
test esi, esi
jne 0x104d153
mov eax, ebx
cmp eax, dword [ebp - 0x148]
jb 0x104cfa1
push 0x100bab4
push dword [ebp - 0x124]
call edi
xor eax, eax
pop ecx
pop ecx
cmp dword [ebp - 0x148], eax
jbe 0x104d078
mov ecx, dword [ebp - 0x184]
mov ebx, dword [ecx + eax*4]
inc eax
push eax
push 0x100b700
mov dword [ebp - 0x130], eax
lea eax, [ebp - 0x34]
push 0x26
push eax
call fcn.01032d94
add esp, 0x10
push dword [ebx + 8]
lea eax, [ebp - 0x120]
push dword [ebx + 4]
push eax
lea eax, [ebp - 0x34]
push eax
push 0x100b738
push dword [ebp - 0x124]
call fcn.0104c009
mov esi, eax
test esi, esi
jne 0x104d15e
push 0xffffffffffffffff
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.01045b05
mov esi, eax
test esi, esi
jne 0x104d169
mov eax, dword [ebp - 0x130]
cmp eax, dword [ebp - 0x148]
jb 0x104d004
xor eax, eax
cmp dword [ebp - 0x140], eax
jbe 0x104d0f6
mov ecx, dword [ebp - 0x17c]
mov ebx, dword [ecx + eax*4]
inc eax
push eax
push 0x100b4d0
mov dword [ebp - 0x130], eax
lea eax, [ebp - 0x74]
push 0x2a
push eax
call fcn.01032d94
add esp, 0x10
push dword [ebx + 8]
lea eax, [ebp - 0x120]
push dword [ebx + 4]
push eax
lea eax, [ebp - 0x74]
push eax
push 0x100b738
push dword [ebp - 0x124]
call fcn.0104c009
mov esi, eax
test esi, esi
jne 0x104d174
push 0xffffffffffffffff
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.01045b05
mov esi, eax
test esi, esi
jne 0x104d17f
mov eax, dword [ebp - 0x130]
cmp eax, dword [ebp - 0x140]
jb 0x104d082
push 0x100ba9c
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 0x100b908
push 0x100b76c
push dword [ebp - 0x124]
call fcn.0104c009
mov esi, eax
test esi, esi
je 0x104d18a
push esi
push 0x19e7013e
jmp 0x104c945
push esi
push 0x19a5013e
jmp 0x104c945
push esi
push 0x19b0013e
jmp 0x104c945
push esi
push 0x19c3013e
jmp 0x104c945
push esi
push 0x19c6013e
jmp 0x104c945
push esi
push 0x19d7013e
jmp 0x104c945
push esi
push 0x19da013e
jmp 0x104c945
push 0xffffffffffffffff
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.01045b05
mov esi, eax
test esi, esi
je 0x104d1a8
push esi
push 0x19ea013e
jmp 0x104c945
push 0x100ba94
push dword [ebp - 0x124]
call edi
mov eax, dword [ebp - 0x13c]
pop ecx
pop ecx
test eax, eax
je 0x104d1c6
mov ecx, dword [eax + 8]
jmp 0x104d1c8
xor ecx, ecx
test eax, eax
je 0x104d1d1
mov eax, dword [eax + 4]
jmp 0x104d1d3
xor eax, eax
push ecx
push eax
lea eax, [ebp - 0x120]
push eax
push 0x100b908
push 0x1003ed0
push dword [ebp - 0x124]
call fcn.0104c009
mov esi, eax
test esi, esi
je 0x104d202
push esi
push 0x19f6013e
jmp 0x104c945
push 0xffffffffffffffff
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.01045b05
mov esi, eax
test esi, esi
je 0x104d220
push esi
push 0x19f9013e
jmp 0x104c945
push 0x100ba7c
push dword [ebp - 0x124]
call edi
pop ecx
pop ecx
push 0x100ba6c
lea eax, [ebp - 0x120]
push eax
push 0x100b6b4
mov ebx, 0x100b68c
push ebx
push dword [ebp - 0x124]
call fcn.0104c1c0
mov esi, eax
test esi, esi
je 0x104d262
push esi
push 0x1a03013e
jmp 0x104c945
mov eax, dword [ebp + 0x18]
dec eax
neg eax
sbb eax, eax
and eax, 0x1000000
push eax
lea eax, [ebp - 0x120]
push eax
push 0x100b678
push ebx
push dword [ebp - 0x124]
call fcn.0104c252
mov esi, eax
test esi, esi
je 0x104d299
push esi
push 0x1a0d013e
jmp 0x104c945
xor esi, esi
cmp dword [ebp - 0x144], esi
jne 0x104d2af
cmp dword [ebp - 0x140], esi
je 0x104d51d
push 0x100ba60
push dword [ebp - 0x124]
call edi
pop ecx
pop ecx
cmp dword [ebp - 0x144], esi
je 0x104d365
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 0x100b5cc
push 0x100b644
push dword [ebp - 0x124]
call fcn.0104c009
mov esi, eax
test esi, esi
je 0x104d30d
push esi
push 0x1a21013e
jmp 0x104c945
push 0xffffffffffffffff
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.01045b05
mov esi, eax
test esi, esi
je 0x104d32b
push esi
push 0x1a24013e
jmp 0x104c945
push 0x9c4
push 2
push 0x2400
push ebx
lea eax, [ebp - 0x120]
push eax
push 0x100b53c
push 0x100b644
push dword [ebp - 0x124]
call fcn.0104c28c
mov esi, eax
test esi, esi
je 0x104d365
push esi
push 0x1a31013e
jmp 0x104c945
cmp dword [ebp - 0x140], 0
je 0x104d3af
push dword [ebp - 0x17c]
lea eax, [ebp - 0x120]
push dword [ebp - 0x140]
push dword [ebp - 0x184]
push 0
push eax
push 0x100b790
push 0x100b644
push dword [ebp - 0x124]
call fcn.0104c562
mov esi, eax
test esi, esi
je 0x104d3af
push esi
push 0x1a41013e
jmp 0x104c945
push dword [ebp - 0x140]
push 0x100baec
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 0x104d3f6
call fcn.01091f1e
mov esi, eax
push esi
push 0x1a52013e
jmp 0x104d604
mov esi, dword [sym.imp.CRYPT32.dll_CertSaveStore]
jmp 0x104d423
cmp dword [ebp - 0x174], 0
push dword [ebp - 0x178]
jne 0x104d44e
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x174], eax
test eax, eax
je 0x104d5f9
push 0
lea eax, [ebp - 0x178]
push eax
push 2
push ebx
push ebx
push dword [ebp - 0x160]
call esi
test eax, eax
jne 0x104d3fe
call fcn.01091f1e
mov esi, eax
push esi
push 0x1a5f013e
jmp 0x104d604
push dword [ebp - 0x174]
lea eax, [ebp - 0x120]
push eax
push 0x100b3c4
mov ebx, 0x100b644
push ebx
push dword [ebp - 0x124]
call fcn.0104c009
mov esi, eax
test esi, esi
je 0x104d482
push esi
push 0x1a73013e
jmp 0x104d604
mov ecx, dword [ebp - 0x144]
xor eax, eax
test ecx, ecx
je 0x104d496
mov eax, dword [ebp - 0x180]
jmp 0x104d4a6
mov ecx, dword [ebp - 0x140]
test ecx, ecx
je 0x104d4aa
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.010499cf
mov esi, eax
test esi, esi
je 0x104d4d6
push esi
push 0x1a81013e
jmp 0x104d604
mov eax, dword [ebp - 0x168]
test eax, eax
je 0x104d4e5
mov ecx, dword [eax + 8]
jmp 0x104d4e7
xor ecx, ecx
test eax, eax
je 0x104d4f0
mov eax, dword [eax + 4]
jmp 0x104d4f2
xor eax, eax
push ecx
push eax
lea eax, [ebp - 0x120]
push eax
push 0x100b394
push ebx
push dword [ebp - 0x124]
call fcn.0104c009
mov esi, eax
test esi, esi
je 0x104d51d
push esi
push 0x1a8a013e
jmp 0x104d604
cmp dword [ebp + 0x18], 0
jne 0x104d5ac
push 0x100bab4
push dword [ebp - 0x124]
call edi
xor eax, eax
pop ecx
pop ecx
cmp dword [ebp - 0x140], eax
jbe 0x104d5ac
mov ecx, dword [ebp - 0x17c]
mov ebx, dword [ecx + eax*4]
inc eax
push eax
push 0x100b4d0
mov dword [ebp - 0x130], eax
lea eax, [ebp - 0x74]
push 0x2a
push eax
call fcn.01032d94
add esp, 0x10
push dword [ebx + 8]
lea eax, [ebp - 0x120]
push dword [ebx + 4]
push eax
lea eax, [ebp - 0x74]
push eax
push 0x100b738
push dword [ebp - 0x124]
call fcn.0104c009
mov esi, eax
test esi, esi
jne 0x104d5e5
push 0xffffffffffffffff
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.01045b05
mov esi, eax
test esi, esi
jne 0x104d5ed
mov eax, dword [ebp - 0x130]
cmp eax, dword [ebp - 0x140]
jb 0x104d540
push 0x100b258
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 0x104d5f5
mov esi, 0x80070070
push esi
push 0x1aad013e
jmp 0x104d604
push esi
push 0x1a9f013e
jmp 0x104d604
push esi
push 0x1aa5013e
jmp 0x104d604
xor esi, esi
jmp 0x104d609
mov esi, 0x8007000e
push esi
push 0x1a69013e
call fcn.0108c503
cmp dword [ebp - 0x160], 0
je 0x104d620
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.010488c1
add edi, 4
cmp edi, 0x10
jb 0x104d624
mov edi, dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
cmp dword [ebp - 0x13c], ebx
je 0x104d655
push dword [ebp - 0x13c]
call edi
cmp dword [ebp - 0x168], ebx
je 0x104d665
push dword [ebp - 0x168]
call edi
cmp dword [ebp - 0x124], ebx
je 0x104d67a
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 0x104d690
push dword [ebp - 0x138]
call edi
cmp dword [ebp - 0x154], ebx
je 0x104d6a0
push dword [ebp - 0x154]
call edi
cmp dword [ebp - 0x134], ebx
je 0x104d6b0
push dword [ebp - 0x134]
call edi
cmp dword [ebp - 0x150], ebx
je 0x104d6c0
push dword [ebp - 0x150]
call edi
cmp dword [ebp - 0x18c], ebx
je 0x104d6d0
push dword [ebp - 0x18c]
call edi
cmp dword [ebp - 0x16c], ebx
je 0x104d6e0
push dword [ebp - 0x16c]
call edi
cmp dword [ebp - 0x158], ebx
je 0x104d6f0
push dword [ebp - 0x158]
call edi
cmp dword [ebp - 0x174], ebx
je 0x104d700
push dword [ebp - 0x174]
call edi
cmp dword [ebp - 0x11c], ebx
je 0x104d714
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 0x104d72b
push ebx
push dword [ebp - 0x170]
call edi
cmp dword [ebp - 0x164], ebx
je 0x104d73c
push ebx
push dword [ebp - 0x164]
call edi
mov eax, dword [ebp - 0x194]
mov ecx, dword [ebp - 4]
pop edi
mov dword [0x10d22b4], eax
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01077d0b
leave
ret 0x18