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

Disassembly:
mov ecx, dword [0x65260c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5033d0
sub esp, 0x74
mov ecx, dword [esp + 0x78]
mov edx, dword [ecx]
mov ebx, dword [edx + 0x10]
mov dword [esp + 0x70], ebx
mov edx, dword [edx + 0x14]
mov dword [esp + 0x30], edx
xor eax, eax
xor ebp, ebp
xor esi, esi
xor edi, edi
jmp 0x50315b
mov eax, esi
lea esi, [esp + 0x38]
call fcn.004642e8
mov ecx, dword [esp + 0x2c]
inc ecx
mov ebx, dword [esp + 0x78]
mov esi, dword [esp + 0x70]
mov edi, dword [esp + 0x20]
mov ebx, esi
mov esi, eax
mov eax, ecx
mov ecx, dword [esp + 0x78]
cmp eax, edx
jge 0x5033a4
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], edi
mov ebx, dword [ebx + eax*4]
lea edi, [esp + 0x38]
xor eax, eax
call fcn.00463e44
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], eax
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x50], 0x3f
mov edi, dword [ebx + 0x10]
cmp edi, 0xfffffffe
jne 0x5031b1
mov dword [esp + 0x50], 0x3f
jmp 0x5032a8
cmp edi, 0xffffffff
jne 0x5031c3
mov dword [esp + 0x50], 0x43
jmp 0x5032a8
test edi, edi
jne 0x5031d4
mov dword [esp + 0x50], 0x55
jmp 0x5032a8
jl 0x50333e
mov edx, dword [esp + 0x78]
mov edx, dword [edx]
cmp dword [edx + 8], edi
jl 0x50333e
mov dword [esp + 0x34], esi
mov edx, dword [edx + 4]
mov edx, dword [edx + edi*4 - 4]
mov edi, dword [edx + 8]
mov esi, dword [edx + 0xc]
add ecx, edi
mov dword [esp + 0x40], ecx
adc eax, esi
mov dword [esp + 0x44], eax
mov ecx, dword [ebx + 0x2c]
and ecx, 3
cmp ecx, 2
jne 0x503221
mov ecx, dword [ebx + 0x18]
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
jmp 0x50322f
mov ecx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x24]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
mov ecx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x24]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
mov ecx, dword [edx + 0x18]
cmp ecx, 0x20
jne 0x50325f
cmp dword [ebx + 0x28], 1
jne 0x503255
mov dword [esp + 0x50], 0x52
jmp 0x50327e
mov dword [esp + 0x50], 0x54
jmp 0x50327e
cmp ecx, 0x40
jne 0x50326e
mov dword [esp + 0x50], 0x44
jmp 0x50327e
cmp ecx, 0x80
jne 0x50327e
mov dword [esp + 0x50], 0x42
cmp dword [ebx + 0x14], 0x6b
jne 0x5032a0
mov dword [esp + 0x24], ebp
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call sym.unicode.ToLower
mov eax, dword [esp + 4]
mov dword [esp + 0x50], eax
mov ebp, dword [esp + 0x24]
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x20]
inc ecx
cmp ebp, ecx
jae 0x5032e3
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 1
lea eax, [0x5249a0]
mov dword [esp + 0x10], eax
call sym.runtime.growslice
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x20], ecx
mov ebx, dword [0x6526b0]
lea eax, [ecx + ecx*2]
shl eax, 4
lea edi, [eax + esi - 0x30]
test ebx, ebx
je 0x503135
mov dword [esp + 0x6c], esi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x68], edi
lea eax, [0x5249a0]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x38]
mov dword [esp + 8], eax
call sym.runtime.wbMove
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x68]
jmp 0x503135
lea eax, [0x53a816]
mov dword [esp], eax
mov dword [esp + 4], 0x26
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call sym.fmt.Errorf
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], ecx
add esp, 0x74
ret
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], ebp
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
add esp, 0x74
ret
call sym.runtime.morestack_noctxt
jmp sym.cmd_internal_objfile._xcoffFile_.symbols