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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x50507d
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 0x504ff7
cmp dl, 0x45
jne 0x504e4d
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.005054a0
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 0x504f8e
mov edx, esi
cmp eax, esi
jge 0x504e68
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x3c], ecx
jl 0x504e68
mov edx, eax
cmp byte [esp + 0x50], 0
je 0x504e74
mov edx, 6
mov ebp, ecx
dec ebp
cmp ebp, 0xfffffffc
jl 0x504f08
cmp ebp, edx
jge 0x504f08
cmp ecx, esi
jge 0x504e8e
mov esi, eax
mov ebx, esi
mov dword [esp + 0x6c], esi
sub ebx, ecx
xor edx, edx
cmp ebx, edx
jle 0x504e9e
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.00505be0
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 0x504f0e
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.005054a0
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 0x504fcd
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], 0x5c5920
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebx
call fcn.0043d700
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
jmp 0x504fa1
cmp dl, 0x65
je 0x504dda
cmp dl, 0x66
jne 0x50506f
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.00505be0
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 0x504e56
jmp 0x504f8e
call fcn.00452240
jmp fcn.00504d90