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

Disassembly:
sub esp, 0x18
mov edx, dword [esp + 0x20]
xor eax, eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov ebp, dword [edi + 4]
mov esi, dword [edi]
mov ebx, dword [edi + 8]
cmp byte [ebp + 0x10], 0x4c
setne al
dec dword [esi + 0x38]
mov ecx, dword [esi + 0x38]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
cmp edx, 2
jne 0x53a743
cmp byte [ebp + 0x11], 0x5a
jne 0x53a743
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
mov eax, dword [esp + 0x34]
test eax, eax
jle 0x53a7b7
cmp byte [ebp + 0x10], 0x59
jne 0x53a7a4
mov edi, dword [ebx + 0x74]
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x2c]
push ecx
cmp edx, 2
jne 0x53a790
cmp byte [ebp + 0x11], 0x56
jne 0x53a77c
push dword [edi + 0x20]
push eax
push dword [edi + 0x28]
push 0x37
push edi
call fcn.0053ab30
add esp, 0x18
jmp 0x53a7cd
push dword [edi + 0x28]
push eax
push dword [edi + 0x20]
push 0x39
push edi
call fcn.0053ab30
add esp, 0x18
jmp 0x53a7cd
push dword [edi + 0x28]
push eax
push dword [edi + 0x30]
push 0x36
push edi
call fcn.0053ab30
add esp, 0x18
jmp 0x53a7b3
push 1
push ecx
push eax
push 0x31
push ebx
call fcn.00512da0
add esp, 0x14
mov edx, dword [esp + 0x30]
cmp edx, 1
jne 0x53a7d1
cmp dword [ebp + 0x58], 0
jne 0x53a7d1
push 0
push edi
call fcn.005398d0
add esp, 8
mov edx, dword [esp + 0x30]
mov eax, dword [ebx + 0x74]
mov dword [esp + 0x24], eax
mov al, byte [ebp + 0x11]
cmp al, byte [ebp + 0x12]
jne 0x53a8e3
cmp dword [esp + 0x34], 0
je 0x53a8e3
cmp byte [ebp + 0x10], 0x59
jne 0x53a8e3
mov al, byte [esi + 0x13]
test al, al
jne 0x53a808
inc dword [esi + 0x2c]
mov ecx, dword [esi + 0x2c]
jmp 0x53a817
dec al
mov byte [esi + 0x13], al
movzx eax, al
mov ecx, dword [esi + eax*4 + 0x98]
mov al, byte [esi + 0x13]
mov dword [esp + 0x2c], ecx
test al, al
jne 0x53a82a
inc dword [esi + 0x2c]
mov eax, dword [esi + 0x2c]
jmp 0x53a839
dec al
mov byte [esi + 0x13], al
movzx eax, al
mov eax, dword [esi + eax*4 + 0x98]
mov dword [esp + 0x10], eax
cmp edx, 2
jne 0x53a87c
push ecx
push dword [edi + 0x20]
push 0x86
push ebx
call fcn.00512d40
push dword [esp + 0x20]
push dword [edi + 0x30]
push 0x86
push ebx
call fcn.00512d40
push dword [esp + 0x4c]
push dword [esp + 0x38]
push dword [esp + 0x38]
push 0x39
push ebx
call fcn.00512da0
add esp, 0x34
jmp 0x53a8a7
cmp dword [edi + 0x1c], 0
je 0x53a8ab
push ecx
push dword [edi + 0x30]
push 0x86
push ebx
call fcn.00512d40
push dword [esp + 0x3c]
push dword [esp + 0x28]
push dword [edi + 0x1c]
push 0x39
push ebx
call fcn.00512da0
add esp, 0x24
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x53a8c7
mov al, byte [esi + 0x13]
cmp al, 8
jae 0x53a8c7
movzx eax, al
mov dword [esi + eax*4 + 0x98], ecx
inc byte [esi + 0x13]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x53a8e3
mov al, byte [esi + 0x13]
cmp al, 8
jae 0x53a8e3
movzx eax, al
mov dword [esi + eax*4 + 0x98], ecx
inc byte [esi + 0x13]
mov eax, edx
dec eax
je 0x53a95a
dec eax
je 0x53a923
cmp dword [ebp + 0x58], 0
mov eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x34]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], ecx
je 0x53a911
push 1
push dword [ebp + 0x5c]
push 0x55
push ebx
call fcn.00512d40
add esp, 0x10
jmp 0x53a971
push dword [edi + 0x14]
push 0
push eax
push ebp
push edi
call fcn.00539c10
add esp, 0x14
jmp 0x53a971
mov ecx, dword [edi + 0x24]
mov eax, dword [edi + 0x20]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp + 0x58]
mov dword [esp + 0x2c], eax
test ecx, ecx
je 0x53a948
push 1
push ecx
push 0x55
push ebx
call fcn.00512d40
add esp, 0x10
jmp 0x53a971
push dword [edi + 0x14]
push 1
push eax
push ebp
push edi
call fcn.00539c10
add esp, 0x14
jmp 0x53a971
mov eax, dword [edi + 0x28]
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0x2c]
push edi
mov dword [esp + 0x14], eax
call fcn.0053bc20
add esp, 4
mov eax, dword [esp + 0x30]
cmp eax, dword [edi + 0x18]
jne 0x53a9a3
push dword [esp + 0x2c]
push 0x81
push ebx
call fcn.00512ce0
mov eax, dword [ebx + 0x74]
add esp, 0xc
test eax, eax
jle 0x53a9a3
lea ecx, [eax + eax*4]
mov edx, 2
mov eax, dword [ebx + 0x70]
mov word [eax + ecx*4 - 0x12], dx
cmp dword [esp + 0x38], 0
mov eax, dword [ebx + 0x74]
je 0x53aa18
add eax, 2
push eax
push dword [esp + 0x30]
push 5
push ebx
call fcn.00512d40
mov edx, dword [ebx + 0x74]
add esp, 0x10
mov dword [esp + 0x1c], edx
cmp dword [ebx + 0x78], edx
jg 0x53a9e3
push 0
push 0
push 0
push 0xb
push ebx
call fcn.004c7840
add esp, 0x14
mov dword [esp + 0x1c], eax
jmp 0x53aa4b
lea eax, [edx + 1]
mov dword [ebx + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [ebx + 0x70]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x53aa4b
mov ecx, dword [esp + 0x18]
inc ecx
add eax, ecx
push eax
push dword [esp + 0x30]
push 5
push ebx
call fcn.00512d40
add esp, 0x10
cmp dword [esp + 0x18], 0
je 0x53aacf
push dword [esp + 0x14]
push 0
push 0xb
push ebx
call fcn.00512d40
add esp, 0x10
cmp dword [esp + 0x18], 0
je 0x53aacf
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x53aa6f
mov ecx, dword [ecx]
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x53aa77
push ecx
push esi
call fcn.004fb720
add esp, 8
jmp 0x53aa79
mov dword [esp + 0x18], 0
xor eax, eax
push eax
push dword [esp + 0x30]
mov dword [esp + 0x38], eax
push edi
call fcn.0053bb10
push dword [esp + 0x30]
mov edi, dword [esp + 0x40]
push dword [esp + 0x20]
push edi
push dword [ebp + 0xc]
push esi
call fcn.0053b710
mov eax, dword [esp + 0x38]
add esp, 0x20
cmp eax, 1
jne 0x53aac4
test edi, edi
je 0x53aacf
mov al, byte [esi + 0x13]
cmp al, 8
jae 0x53aacf
movzx eax, al
mov dword [esi + eax*4 + 0x98], edi
inc byte [esi + 0x13]
jmp 0x53aacf
cmp eax, dword [esi + 0x1c]
jle 0x53aacf
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], edi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x53aae5
push eax
push 0
push 0xb
push ebx
call fcn.00512d40
add esp, 0x10
mov edx, dword [ebx + 0xc]
mov ebp, dword [esp + 0x14]
not ebp
mov eax, dword [edx + 0x3c]
add eax, dword [edx + 0x38]
jns 0x53ab0d
push ebp
push ebx
push edx
call fcn.004d98e0
mov eax, dword [esp + 0x28]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov edx, dword [edx + 0x40]
mov ecx, dword [ebx + 0x74]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov dword [edx + ebp*4], ecx
pop ebp
pop ebx
add esp, 0x18
ret