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

Disassembly:
push 0xffffffffffffffff
push 0x5d4520
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x65d4e4]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65d4e4]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
or edi, 0xffffffff
xor ebp, ebp
mov ebx, 0xf
mov dword [esp + 0x30], ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x88], ebx
mov dword [esp + 0x84], ebp
mov byte [esp + 0x74], 0
mov dword [esp + 0x98], ebp
lea ecx, [ecx]
call fcn.0041aef0
mov esi, dword [eax + 0xfc]
call fcn.0041aef0
cmp esi, ebp
mov eax, dword [eax + 0x110]
mov dword [esp + 0x38], eax
je 0x53132c
cmp eax, ebp
je 0x53132c
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x20]
push edx
push 0xffffffffffffffff
lea eax, [esp + 0x24]
push eax
push 2
push 2
push ebp
call esi
cmp eax, ebp
mov dword [esp + 0x34], eax
je 0x5310fa
cmp eax, 0xea
jne 0x531308
mov esi, dword [esp + 0x14]
cmp esi, ebp
je 0x531319
cmp dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
jbe 0x53130c
add esi, 0x18
jmp 0x531120
lea ecx, [esi - 0x18]
test ecx, ecx
je 0x531308
push 0x6c
call fcn.00595e8d
add esp, 4
cmp eax, ebp
je 0x53116d
mov dword [eax + 0x18], ebx
mov dword [eax + 0x14], ebp
mov byte [eax + 4], 0
mov dword [eax + 0x34], ebx
mov dword [eax + 0x30], ebp
mov byte [eax + 0x20], 0
mov dword [eax + 0x38], ebp
mov dword [eax + 0x3c], ebp
mov dword [eax + 0x40], ebp
mov dword [eax + 0x44], ebp
mov dword [eax + 0x48], ebp
mov dword [eax + 0x4c], ebp
mov dword [eax + 0x68], ebx
mov dword [eax + 0x64], ebp
mov byte [eax + 0x54], 0
mov edi, eax
jmp 0x53116f
xor edi, edi
lea ecx, [esp + 0x50]
mov dword [esp + 0x28], edi
call fcn.00528f40
mov edx, dword [esi - 0x18]
push ebp
push edx
lea ecx, [esp + 0x58]
mov byte [esp + 0xa0], 1
call fcn.00529100
mov ecx, eax
lea edx, [ecx + 1]
mov bl, byte [ecx]
add ecx, 1
test bl, bl
jne 0x531197
sub ecx, edx
push ecx
push eax
mov ecx, edi
call fcn.00409790
lea ecx, [esp + 0x60]
call fcn.00528f40
mov eax, dword [esi + 0xc]
push ebp
push eax
lea ecx, [esp + 0x68]
mov byte [esp + 0xa0], 2
call fcn.00529100
mov edx, eax
lea ebp, [edi + 0x1c]
lea ecx, [edx + 1]
mov bl, byte [edx]
add edx, 1
test bl, bl
jne 0x5311d2
sub edx, ecx
push edx
push eax
mov ecx, ebp
call fcn.00409790
mov cl, byte [esi]
not cl
movzx edx, cl
shr edx, 1
and edx, 1
mov dword [edi + 0x3c], edx
movzx eax, byte [esi]
shr eax, 4
and eax, 1
mov dword [edi + 0x40], eax
mov ecx, dword [esi]
shr ecx, 0x17
and ecx, 1
mov dword [edi + 0x48], ecx
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x40]
mov dword [edi + 0x44], edx
call fcn.00528f40
mov eax, dword [esi - 4]
push 0
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0xa0], 3
call fcn.00529100
mov edx, eax
lea ebp, [edi + 0x50]
lea ecx, [edx + 1]
lea ebx, [ebx]
mov bl, byte [edx]
add edx, 1
test bl, bl
jne 0x531240
sub edx, ecx
push edx
push eax
mov ecx, ebp
call fcn.00409790
cmp dword [esi - 0x10], 0
je 0x53128a
push 0
call fcn.005b2b63
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
call fcn.005b3952
push eax
call fcn.005b3c29
mov dword [esp + 0x2c], eax
add esp, 0xc
sub eax, dword [esi - 0x10]
mov dword [esp + 0x24], edx
mov dword [edi + 0x4c], eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x98], 2
call fcn.00528f50
lea ecx, [esp + 0x60]
mov byte [esp + 0x98], 1
call fcn.00528f50
lea ecx, [esp + 0x50]
mov byte [esp + 0x98], 0
call fcn.00528f50
mov edi, dword [esp + 0x30]
mov ebp, dword [edi + 8]
mov eax, dword [ebp + 4]
add edi, 4
lea edx, [esp + 0x28]
push edx
push eax
push ebp
mov ecx, edi
call fcn.0050ded0
push 1
mov ecx, edi
mov ebx, eax
call fcn.00530bf0
mov eax, dword [esp + 0x1c]
mov dword [ebp + 4], ebx
mov ecx, dword [ebx + 4]
add eax, 1
mov dword [ecx], ebx
xor ebp, ebp
add esi, 0x60
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
lea ebx, [ebp + 0xf]
jb 0x531120
mov esi, dword [esp + 0x14]
cmp esi, ebp
je 0x531319
push esi
call dword [esp + 0x3c]
mov dword [esp + 0x14], ebp
cmp dword [esp + 0x34], 0xea
mov edi, 1
je 0x5310a0
cmp dword [esp + 0x88], 0x10
jb 0x531343
mov edx, dword [esp + 0x74]
push edx
call fcn.00595eb8
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.005b1988
add esp, 0x88
ret
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 4]
call edx
mov ecx, esi
pop esi
jmp 0x531030