Function at 0x52a770
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a580e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc0
push ebx
push esi
mov eax, 1
mov ecx, 7
mov dword [esp + 0x6c], eax
mov dword [esp + 0x88], eax
push edi
mov edi, dword [ebp + 0xc]
mov esi, dword [edi + 0x74]
mov dword [esp + 0x78], ecx
mov dword [esp + 0xb4], ecx
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x5c]
mov edx, 8
mov dword [esp + 0x94], eax
mov eax, 3
push ecx
xor ebx, ebx
push edi
mov dword [esp + 0x74], 0xfffffff0
mov dword [esp + 0x7c], 0xffffffe2
mov dword [esp + 0x84], 0xffffffff
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], 0x5c63d8
mov dword [esp + 0x98], ebx
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], 0x7fffffff
mov dword [esp + 0xa8], 0x5c63c8
mov dword [esp + 0xac], 2
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], 0x5c63a0
mov dword [esp + 0xb8], 5
mov dword [esp + 0xc0], 0x5c6360
mov dword [esp + 0xc4], edx
call fcn.0050d0b0
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
add eax, edx
cdq
sub eax, edx
mov edx, dword [esp + 0x6c]
sar eax, 1
add esp, 8
push eax
lea eax, [edx + ecx]
cdq
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x34]
call fcn.00591df0
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x50]
call fcn.004017d0
mov eax, dword [esi*4 + 0x5c6310]
cmp eax, 2
mov ecx, dword [edi + 0xc]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x20], 0x40
mov dword [esp + 0x18], 0x1606
mov dword [esp + 0x10], 8
jl 0x52a8ec
mov dword [esp + 0x18], 0x1602
mov dword [esp + 0x20], 0x5304
mov dword [esp + 0x10], 4
lea eax, [eax + eax*2]
mov ecx, dword [esp + eax*4 + 0x8c]
cmp ecx, ebx
lea eax, [esp + eax*4 + 0x84]
mov dword [esp + 0x38], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 0x2c], ecx
jle 0x52aab1
mov edx, dword [eax + 4]
mov dword [esp + 0x14], edx
push 0x74
call fcn.00519e50
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebx
mov dword [esp + 0xd4], ebx
je 0x52a93f
push 0xffffffffffffffff
push ebx
mov ecx, eax
call fcn.0050eb00
mov esi, eax
jmp 0x52a941
xor esi, esi
cmp esi, ebx
mov dword [esp + 0xd4], 0xffffffff
je 0x52aa91
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push eax
push ecx
mov ecx, esi
call fcn.0050d350
test eax, eax
push 1
je 0x52aa8a
mov ebx, dword [edi + 0x14]
mov edi, dword [edi + 0x1c]
mov dword [esi + 0x1c], edi
mov edi, dword [sym.imp.SanCalc.dll_int___cdecl_rnd_int__enum_RANDOM_KIND__int_]
push 0xb
push 0x32
mov dword [esi + 0x14], ebx
call edi
add esp, 0xc
add eax, 0x64
push eax
mov ecx, esi
call fcn.00519f70
mov eax, dword [esp + 0x20]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x34]
mov ecx, dword [esp + 0x10]
mov eax, dword [esi]
push 1
push 0xb
push ecx
mov dword [esp + 0x28], eax
call edi
add esp, 0xc
push eax
mov eax, dword [esp + 0x20]
mov ecx, esi
call dword [eax + 0x30]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov edx, dword [esp + 0x50]
add edx, ecx
mov ecx, dword [esp + 0x4c]
add eax, ecx
push edx
push eax
lea ecx, [esp + 0xc8]
call fcn.00591df0
lea edx, [esp + 0xc0]
push edx
lea ecx, [esp + 0x28]
call fcn.004017d0
mov edx, dword [esp + 0x38]
mov edi, dword [edx]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x34]
xor eax, eax
cmp edi, ecx
mov ecx, dword [esp + 0x24]
setle al
lea eax, [eax + eax - 1]
add eax, edx
mov edi, eax
mov eax, dword [esp + 0x28]
push eax
push ecx
mov ecx, esi
call fcn.0057c690
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx + 0x14]
mov eax, dword [ebx]
lea ecx, [esp + 0x3c]
push ecx
mov ecx, ebx
call dword [eax + 0x18]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x28]
sub edx, eax
mov eax, dword [esp + 0x24]
push edx
sub eax, dword [esp + 0x40]
push eax
lea ecx, [esp + 0x4c]
call fcn.00591df0
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x48]
sub edi, eax
push edi
lea eax, [esp + 0x58]
mov dword [esp + 0x58], ecx
push eax
mov ecx, esi
mov dword [esp + 0x60], edx
call fcn.0050cda0
mov ecx, dword [ebp + 8]
push 0x82000203
push esi
call fcn.0050d760
mov edi, dword [ebp + 0xc]
xor ebx, ebx
jmp 0x52aa91
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
inc eax
add edx, 8
cmp eax, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], edx
jl 0x52a918
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret