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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x18], esi
mov ebx, dword [esi + 0x38]
push dword [ebx]
call fcn.004669b0
add esp, 4
cmp eax, 0x65
jne 0x53643d
or dword [esi + 0x3c], 3
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x64
jne 0x536617
push 0
push dword [ebx]
mov dword [ebp - 0xc], 0
call fcn.004675c0
mov esi, dword [ebx]
add esp, 8
mov dword [ebx + 8], eax
mov edi, 1
mov dword [ebx + 0xc], edx
test esi, esi
je 0x5364a5
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x53647d
push eax
call dword [0x5dac80]
add esp, 4
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x536492
cmp di, word [esi + 0x90]
jae 0x536492
add ecx, 0x28
jmp 0x5364aa
mov ecx, dword [esi]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.0043ee60
mov ecx, 0x5b3788
movzx eax, word [ecx + 0x10]
test al, 2
je 0x5364bd
cmp byte [ecx + 0x12], 1
jne 0x5364bd
mov eax, dword [ecx + 0xc]
jmp 0x5364ea
test al, 0x10
je 0x5364d6
mov edx, dword [ecx + 0xc]
test eax, 0x400
je 0x5364d1
mov eax, dword [ecx]
add eax, edx
jmp 0x5364ea
mov dword [ebp - 4], edx
jmp 0x5364ed
test al, 1
je 0x5364e3
mov dword [ebp - 4], 0
jmp 0x5364ed
mov dl, 1
call fcn.004606b0
mov dword [ebp - 4], eax
test esi, esi
je 0x53651f
mov ecx, dword [esi]
mov edx, dword [esi + 0x24]
cmp byte [ecx + 0x57], 0
jne 0x536504
test edx, edx
jne 0x536504
xor eax, eax
jmp 0x536509
call fcn.0043bb70
mov dword [esi + 0x24], eax
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x53651f
push eax
call dword [0x5dac88]
add esp, 4
mov esi, dword [ebx]
test esi, esi
jne 0x536533
push 0x5b3788
call fcn.00465a70
mov edi, eax
jmp 0x5365ac
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x536546
push eax
call dword [0x5dac80]
add esp, 4
mov eax, dword [esi + 0x78]
test eax, eax
je 0x53655b
cmp di, word [esi + 0x90]
jae 0x53655b
add eax, 0x28
jmp 0x536573
mov ecx, dword [esi]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.0043ee60
mov eax, 0x5b3788
push eax
call fcn.00465a70
mov ecx, dword [esi]
add esp, 4
mov edx, dword [esi + 0x24]
mov edi, eax
mov dword [ebp - 8], edi
cmp byte [ecx + 0x57], 0
jne 0x536594
test edx, edx
jne 0x536594
xor eax, eax
jmp 0x536599
call fcn.0043bb70
mov dword [esi + 0x24], eax
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x5365b2
push eax
call dword [0x5dac88]
mov dword [ebp - 8], edi
add esp, 4
cmp dword [ebp - 4], 0
mov esi, edi
jle 0x53660e
mov eax, dword [ebx + 0x14]
xor ecx, ecx
dec eax
test eax, eax
jle 0x536602
lea eax, [ebx + 0x18]
xor edi, edi
mov dword [ebp - 0x10], eax
nop dword [eax]
lea edx, [ebp - 0x14]
mov ecx, esi
call fcn.005418c0
mov ecx, dword [ebp - 0xc]
add esi, eax
mov eax, dword [ebp - 0x10]
inc edi
add ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc], ecx
mov dword [eax], ecx
add eax, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x14]
dec eax
cmp edi, eax
jl 0x5365d0
mov dword [ebp - 0x14], edi
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
sub edi, esi
add edi, dword [ebp - 4]
mov dword [ebx + ecx*4 + 0x18], edi
mov dword [ebx + 0x10], esi
mov ecx, dword [ebp - 0x18]
or dword [ecx + 0x3c], 0x4e
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret