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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x503d0d
sub esp, 0x40
mov edi, dword [esp + 0x4c]
mov esi, dword [esp + 0x6c]
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
xor edx, edx
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], edx
movzx edx, byte [esp + 0x70]
cmp dl, 0x47
ja 0x503c87
cmp dl, 0x45
jne 0x503add
mov ebx, dword [esp + 0x44]
mov dword [esp], ebx
mov ebx, dword [esp + 0x48]
mov dword [esp + 4], ebx
mov dword [esp + 8], edi
movzx ebx, byte [esp + 0x51]
mov byte [esp + 0xc], bl
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x58]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
movzx ebx, byte [esp + 0x68]
mov byte [esp + 0x24], bl
mov dword [esp + 0x28], esi
movzx ebx, byte [esp + 0x70]
mov byte [esp + 0x2c], bl
call fcn.00504130
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
add esp, 0x40
ret
cmp dl, 0x47
jne 0x503c1e
mov edx, esi
cmp eax, esi
jge 0x503af8
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x3c], ecx
jl 0x503af8
mov edx, eax
cmp byte [esp + 0x50], 0
je 0x503b04
mov edx, 6
mov ebp, ecx
dec ebp
cmp ebp, 0xfffffffc
jl 0x503b98
cmp ebp, edx
jge 0x503b98
cmp ecx, esi
jge 0x503b1e
mov esi, eax
mov ebx, esi
mov dword [esp + 0x6c], esi
sub ebx, ecx
xor edx, edx
cmp ebx, edx
jle 0x503b2e
mov edx, ebx
mov ebx, dword [esp + 0x44]
mov dword [esp], ebx
mov ebx, dword [esp + 0x48]
mov dword [esp + 4], ebx
mov dword [esp + 8], edi
movzx ebx, byte [esp + 0x51]
mov byte [esp + 0xc], bl
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x58]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
movzx ebx, byte [esp + 0x68]
mov byte [esp + 0x24], bl
mov dword [esp + 0x28], edx
call fcn.00504870
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
add esp, 0x40
ret
cmp eax, esi
jge 0x503b9e
mov esi, eax
mov ebx, dword [esp + 0x44]
mov dword [esp], ebx
mov ebx, dword [esp + 0x48]
mov dword [esp + 4], ebx
mov dword [esp + 8], edi
movzx ebx, byte [esp + 0x51]
mov byte [esp + 0xc], bl
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x58]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
movzx ebx, byte [esp + 0x68]
mov byte [esp + 0x24], bl
mov ebx, esi
mov dword [esp + 0x6c], esi
dec ebx
mov dword [esp + 0x28], ebx
movzx ebx, byte [esp + 0x70]
add ebx, 0x65
sub ebx, 0x67
mov byte [esp + 0x2c], bl
call fcn.00504130
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
add esp, 0x40
ret
mov ecx, dword [esp + 0x44]
mov ebx, dword [esp + 0x48]
mov edx, edi
mov eax, ebx
add ebx, 2
cmp ebx, edi
ja 0x503c5d
mov esi, eax
add esi, 2
mov ebx, ecx
add ebx, eax
mov byte [ebx], 0x25
mov ebx, ecx
mov ebp, eax
inc ebp
add ebx, ebp
movzx ebp, byte [esp + 0x70]
xchg ebp, eax
mov byte [ebx], al
xchg ebp, eax
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], edx
add esp, 0x40
ret
mov dword [esp], 0x5c41e0
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebx
call fcn.0043c390
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
jmp 0x503c31
cmp dl, 0x65
je 0x503a6a
cmp dl, 0x66
jne 0x503cff
mov ebx, dword [esp + 0x44]
mov dword [esp], ebx
mov ebx, dword [esp + 0x48]
mov dword [esp + 4], ebx
mov dword [esp + 8], edi
movzx ebx, byte [esp + 0x51]
mov byte [esp + 0xc], bl
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x58]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
movzx ebx, byte [esp + 0x68]
mov byte [esp + 0x24], bl
mov dword [esp + 0x28], esi
call fcn.00504870
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
add esp, 0x40
ret
cmp dl, 0x67
je 0x503ae6
jmp 0x503c1e
call fcn.00450ed0
jmp fcn.00503a20