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

Disassembly:
sub esp, 0xc0
mov eax, dword [esp + 0xc4]
push ebx
push ebp
push esi
xor esi, esi
push edi
xor ebp, ebp
mov dword [esp + 0x38], esi
call fcn.004f4f80
mov edi, dword [0x15336f8]
xor ecx, ecx
cmp edi, esi
jle 0x50395e
mov edx, dword [esp + 0xd4]
mov ebx, dword [edx]
add edx, 0x90
lea esp, [esp]
mov eax, 0x100
shl eax, cl
test ebx, eax
je 0x503953
mov eax, dword [edx]
mov dword [esp + ecx*4 + 0x64], esi
mov dword [esp + ecx*4 + 0x44], eax
lea esi, [esi + eax*4]
mov eax, dword [ecx*4 + 0x16e7be0]
mov dword [esp + ecx*4 + 0x14], eax
inc ecx
add edx, 0xc8
cmp ecx, edi
jl 0x503930
mov ecx, dword [esp + 0xd4]
test dword [ecx], 0x10000
je 0x50397d
mov edx, ecx
mov ebp, esi
push edx
add esi, 4
call fcn.004f45e0
add esp, 4
mov eax, dword [esp + 0xd4]
test dword [eax], 0x20000
je 0x503993
mov dword [esp + 0x38], esi
add esi, 0xc
mov ecx, dword [0x17efc00]
mov eax, dword [0x17efc28]
lea ebx, [esi + ecx*4]
imul eax, ebx
mov dword [esp + 0x40], esi
mov dword [esp + 0x90], ebx
mov edi, 0x162fbe0
call fcn.005037d0
mov ecx, dword [0x15336f8]
mov esi, eax
xor eax, eax
test ecx, ecx
jle 0x5039e2
jmp 0x5039d0
mov edx, dword [esp + eax*4 + 0x64]
add edx, esi
mov dword [esp + eax*4 + 0xb0], edx
inc eax
cmp eax, ecx
jl 0x5039d0
mov ecx, dword [esp + 0xd4]
push ebx
lea eax, [esp + 0xb4]
push eax
push ecx
call fcn.004f33c0
mov edx, dword [esp + 0xe0]
mov eax, dword [edx]
add esp, 0xc
test eax, 0x10000
mov eax, dword [0x15335d4]
je 0x503a3e
test ah, 1
jne 0x503a2a
push 0x8076
call dword [0x15338d8]
or dword [0x15335d4], 0x100
lea eax, [esi + ebp]
push eax
push ebx
push 0x1401
push 4
call dword [0x15343cc]
jmp 0x503a87
test ah, 1
je 0x503a58
push 0x8076
call dword [0x15338fc]
and dword [0x15335d4], 0xfffffeff
mov ecx, dword [esp + 0xd4]
cmp dword [ecx + 0x664], 0xb
jne 0x503a74
mov edx, dword [0x1548adc]
add edx, 0x6c
push edx
jmp 0x503a81
mov eax, dword [esp + 0xd4]
add eax, 0x680
push eax
call dword [0x1533e50]
mov ecx, dword [esp + 0xd4]
test dword [ecx], 0x20000
mov eax, dword [0x15335d4]
je 0x503acb
test ah, 2
jne 0x503ab5
push 0x8075
call dword [0x15338d8]
or dword [0x15335d4], 0x200
mov edx, dword [esp + 0x38]
lea eax, [esi + edx]
push eax
push ebx
push 0x1406
call dword [0x1533fdc]
jmp 0x503ae5
test ah, 2
je 0x503ae5
push 0x8075
call dword [0x15338fc]
and dword [0x15335d4], 0xfffffdff
mov eax, dword [0x15335d4]
test ah, 4
jne 0x503b04
push 0x8074
call dword [0x15338d8]
or dword [0x15335d4], 0x400
mov ecx, dword [esp + 0x40]
mov eax, dword [0x17efc00]
lea edx, [esi + ecx]
push edx
push ebx
push 0x1406
push eax
call dword [0x1534490]
mov ecx, dword [esp + 0xd4]
mov eax, dword [ecx]
mov edx, dword [esp + 0x44]
mov ecx, dword [0x17efc00]
and eax, 0x3ff00
cmp eax, 0x20100
jne 0x503bca
cmp edx, 2
jne 0x503bca
cmp ecx, 3
jne 0x503bca
mov eax, dword [0x17efc28]
xor edx, edx
test eax, eax
jle 0x5041de
mov ecx, dword [esp + 0x14]
mov eax, 0x1697be4
mov ebx, dword [ecx]
mov dword [esi], ebx
mov ebx, dword [ecx + 4]
mov dword [esi + 4], ebx
mov ebx, dword [eax - 4]
add esi, 4
mov dword [esi + 4], ebx
mov ebx, dword [eax]
add ecx, 4
add esi, 4
mov dword [esi + 4], ebx
mov ebx, dword [eax + 4]
add esi, 4
mov dword [esi + 4], ebx
mov ebx, dword [edi]
add esi, 4
add esi, 4
mov dword [esi], ebx
mov ebx, dword [edi + 4]
add edi, 4
add esi, 4
mov dword [esi], ebx
mov ebx, dword [edi + 4]
add edi, 4
add esi, 4
mov dword [esi], ebx
mov ebx, dword [0x17efc28]
add ecx, 4
add esi, 4
add edi, 4
inc edx
add eax, 0xc
cmp edx, ebx
jl 0x503b67
jmp 0x5041de
cmp eax, 0x10100
jne 0x503c43
cmp edx, 2
jne 0x503c43
cmp ecx, 3
jne 0x503c43
mov eax, dword [0x17efc28]
xor ecx, ecx
test eax, eax
jle 0x5041de
mov eax, dword [esp + 0x14]
mov edi, edi
mov edx, dword [eax]
mov dword [esi], edx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov edx, dword [ecx*4 + 0x16dfbe0]
add esi, 4
add eax, 4
mov dword [esi + 4], edx
mov edx, dword [edi]
add esi, 4
add esi, 4
mov dword [esi], edx
mov edx, dword [edi + 4]
add edi, 4
add esi, 4
mov dword [esi], edx
mov edx, dword [edi + 4]
add edi, 4
add esi, 4
mov dword [esi], edx
mov edx, dword [0x17efc28]
add eax, 4
add esi, 4
add edi, 4
inc ecx
cmp ecx, edx
jl 0x503bf0
jmp 0x5041de
cmp eax, 0x100
jne 0x503cad
cmp edx, 2
jne 0x503cad
cmp ecx, 3
jne 0x503cad
mov eax, dword [0x17efc28]
xor ecx, ecx
test eax, eax
jle 0x5041de
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
mov dword [esi], edx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov edx, dword [edi]
add esi, 4
add eax, 4
add esi, 4
mov dword [esi], edx
mov edx, dword [edi + 4]
add edi, 4
add esi, 4
mov dword [esi], edx
mov edx, dword [edi + 4]
add edi, 4
add esi, 4
mov dword [esi], edx
mov edx, dword [0x17efc28]
add eax, 4
add esi, 4
add edi, 4
inc ecx
cmp ecx, edx
jl 0x503c67
jmp 0x5041de
cmp eax, 0x10300
jne 0x503d5a
cmp edx, 2
jne 0x503d5a
cmp dword [esp + 0x48], edx
jne 0x503d5a
cmp ecx, 3
jne 0x503d5a
mov eax, dword [0x17efc28]
xor edx, edx
test eax, eax
jle 0x5041de
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
jmp 0x503cf0
mov ebx, dword [eax]
mov dword [esi], ebx
mov ebx, dword [eax + 4]
mov dword [esi + 4], ebx
mov ebx, dword [ecx]
add esi, 4
mov dword [esi + 4], ebx
mov ebx, dword [ecx + 4]
add eax, 4
add esi, 4
mov dword [esi + 4], ebx
mov ebx, dword [edx*4 + 0x16dfbe0]
add esi, 4
add ecx, 4
mov dword [esi + 4], ebx
mov ebx, dword [edi]
add esi, 4
add esi, 4
mov dword [esi], ebx
mov ebx, dword [edi + 4]
add edi, 4
add esi, 4
mov dword [esi], ebx
mov ebx, dword [edi + 4]
add edi, 4
add esi, 4
mov dword [esi], ebx
mov ebx, dword [0x17efc28]
add eax, 4
add ecx, 4
add esi, 4
add edi, 4
inc edx
cmp edx, ebx
jl 0x503cf0
jmp 0x5041de
mov eax, dword [0x17efc28]
test eax, eax
mov dword [esp + 0x3c], 0
jle 0x5041de
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
sub edx, eax
mov dword [esp + 0xac], edx
mov edx, dword [esp + 0x6c]
sub edx, eax
mov dword [esp + 0x98], edx
mov edx, dword [esp + 0x70]
sub edx, eax
mov dword [esp + 0xa0], edx
mov edx, dword [esp + 0x74]
sub edx, eax
mov dword [esp + 0xa8], edx
mov edx, dword [esp + 0x78]
sub edx, eax
mov dword [esp + 0x8c], edx
mov edx, dword [esp + 0x7c]
sub edx, eax
mov dword [esp + 0x84], edx
mov edx, dword [esp + 0x80]
sub edx, eax
mov dword [esp + 0x94], edx
mov edx, dword [esp + 0x38]
sub edx, eax
mov dword [esp + 0x9c], edx
mov edx, dword [esp + 0x40]
sub ebp, eax
sub edx, eax
mov dword [esp + 0x88], edx
mov edx, dword [esp + 0x30]
lea ecx, [eax + esi]
mov dword [esp + 0x34], 0x1697be4
mov dword [esp + 0xa4], ebp
mov ebx, dword [esp + 0xd4]
test byte [ebx + 1], 1
mov ebp, dword [esp + 0x18]
je 0x503e71
mov ebx, dword [esp + 0x14]
mov ebx, dword [ebx]
mov ebp, dword [esp + 0xac]
mov dword [ecx + ebp], ebx
mov ebx, dword [esp + 0x14]
mov ebp, dword [ebx + 4]
add ebx, 4
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x64]
mov dword [ebx + esi + 4], ebp
add dword [esp + 0x14], 4
cmp dword [esp + 0x44], 3
jl 0x503e6d
mov ebp, dword [esp + 0x14]
mov ebp, dword [ebp]
mov dword [ebx + esi + 8], ebp
add dword [esp + 0x14], 4
cmp dword [esp + 0x44], 4
jne 0x503e6d
mov ebp, dword [esp + 0x14]
mov ebp, dword [ebp]
mov dword [ebx + esi + 0xc], ebp
add dword [esp + 0x14], 4
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0xd4]
test byte [ebx + 1], 2
je 0x503ec2
mov ebx, dword [ebp]
add ebp, 4
mov dword [ecx], ebx
mov ebx, dword [ebp]
mov dword [eax + esi + 4], ebx
mov ebx, dword [esp + 0x48]
add ebp, 4
cmp ebx, 3
mov dword [esp + 0x18], ebp
jl 0x503ec2
mov ebx, dword [ebp]
mov dword [eax + esi + 8], ebx
mov ebx, dword [esp + 0x48]
add ebp, 4
cmp ebx, 4
mov dword [esp + 0x18], ebp
jne 0x503ec2
mov ebx, dword [ebp]
add ebp, 4
mov dword [eax + esi + 0xc], ebx
mov dword [esp + 0x18], ebp
mov ebx, dword [esp + 0xd4]
test dword [ebx], 0x400
je 0x503f2a
mov ebx, dword [esp + 0x1c]
mov ebx, dword [ebx]
mov ebp, dword [esp + 0x98]
mov dword [ecx + ebp], ebx
mov ebx, dword [esp + 0x1c]
mov ebp, dword [ebx + 4]
add ebx, 4
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x6c]
mov dword [ebx + esi + 4], ebp
add dword [esp + 0x1c], 4
cmp dword [esp + 0x4c], 3
jl 0x503f2a
mov ebp, dword [esp + 0x1c]
mov ebp, dword [ebp]
mov dword [ebx + esi + 8], ebp
add dword [esp + 0x1c], 4
cmp dword [esp + 0x4c], 4
jne 0x503f2a
mov ebp, dword [esp + 0x1c]
mov ebp, dword [ebp]
mov dword [ebx + esi + 0xc], ebp
add dword [esp + 0x1c], 4
mov ebx, dword [esp + 0xd4]
test dword [ebx], 0x800
je 0x503f92
mov ebx, dword [esp + 0x20]
mov ebx, dword [ebx]
mov ebp, dword [esp + 0xa0]
mov dword [ecx + ebp], ebx
mov ebx, dword [esp + 0x20]
mov ebp, dword [ebx + 4]
add ebx, 4
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x70]
mov dword [ebx + esi + 4], ebp
add dword [esp + 0x20], 4
cmp dword [esp + 0x50], 3
jl 0x503f92
mov ebp, dword [esp + 0x20]
mov ebp, dword [ebp]
mov dword [ebx + esi + 8], ebp
add dword [esp + 0x20], 4
cmp dword [esp + 0x50], 4
jne 0x503f92
mov ebp, dword [esp + 0x20]
mov ebp, dword [ebp]
mov dword [ebx + esi + 0xc], ebp
add dword [esp + 0x20], 4
mov ebx, dword [esp + 0xd4]
test dword [ebx], 0x1000
je 0x503ffa
mov ebx, dword [esp + 0x24]
mov ebx, dword [ebx]
mov ebp, dword [esp + 0xa8]
mov dword [ecx + ebp], ebx
mov ebx, dword [esp + 0x24]
mov ebp, dword [ebx + 4]
add ebx, 4
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x74]
mov dword [ebx + esi + 4], ebp
add dword [esp + 0x24], 4
cmp dword [esp + 0x54], 3
jl 0x503ffa
mov ebp, dword [esp + 0x24]
mov ebp, dword [ebp]
mov dword [ebx + esi + 8], ebp
add dword [esp + 0x24], 4
cmp dword [esp + 0x54], 4
jne 0x503ffa
mov ebp, dword [esp + 0x24]
mov ebp, dword [ebp]
mov dword [ebx + esi + 0xc], ebp
add dword [esp + 0x24], 4
mov ebx, dword [esp + 0xd4]
test dword [ebx], 0x2000
je 0x504062
mov ebx, dword [esp + 0x28]
mov ebx, dword [ebx]
mov ebp, dword [esp + 0x8c]
mov dword [ecx + ebp], ebx
mov ebx, dword [esp + 0x28]
mov ebp, dword [ebx + 4]
add ebx, 4
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x78]
mov dword [ebx + esi + 4], ebp
add dword [esp + 0x28], 4
cmp dword [esp + 0x58], 3
jl 0x504062
mov ebp, dword [esp + 0x28]
mov ebp, dword [ebp]
mov dword [ebx + esi + 8], ebp
add dword [esp + 0x28], 4
cmp dword [esp + 0x58], 4
jne 0x504062
mov ebp, dword [esp + 0x28]
mov ebp, dword [ebp]
mov dword [ebx + esi + 0xc], ebp
add dword [esp + 0x28], 4
mov ebx, dword [esp + 0xd4]
test dword [ebx], 0x4000
je 0x5040ca
mov ebx, dword [esp + 0x2c]
mov ebx, dword [ebx]
mov ebp, dword [esp + 0x84]
mov dword [ecx + ebp], ebx
mov ebx, dword [esp + 0x2c]
mov ebp, dword [ebx + 4]
add ebx, 4
mov dword [esp + 0x2c], ebx
mov ebx, dword [esp + 0x7c]
mov dword [ebx + esi + 4], ebp
add dword [esp + 0x2c], 4
cmp dword [esp + 0x5c], 3
jl 0x5040ca
mov ebp, dword [esp + 0x2c]
mov ebp, dword [ebp]
mov dword [ebx + esi + 8], ebp
add dword [esp + 0x2c], 4
cmp dword [esp + 0x5c], 4
jne 0x5040ca
mov ebp, dword [esp + 0x2c]
mov ebp, dword [ebp]
mov dword [ebx + esi + 0xc], ebp
add dword [esp + 0x2c], 4
mov ebx, dword [esp + 0xd4]
test dword [ebx], 0x8000
je 0x50411d
mov ebx, dword [edx]
mov ebp, dword [esp + 0x94]
mov dword [ecx + ebp], ebx
mov ebp, dword [edx + 4]
mov ebx, dword [esp + 0x80]
add edx, 4
mov dword [ebx + esi + 4], ebp
mov ebp, dword [esp + 0x60]
add edx, 4
cmp ebp, 3
jl 0x50411d
mov ebp, dword [edx]
mov dword [ebx + esi + 8], ebp
mov ebp, dword [esp + 0x60]
add edx, 4
cmp ebp, 4
jne 0x50411d
mov ebp, dword [edx]
mov dword [ebx + esi + 0xc], ebp
add edx, 4
mov ebx, dword [esp + 0xd4]
test dword [ebx], 0x10000
je 0x504141
mov ebx, dword [esp + 0x3c]
mov ebx, dword [ebx*4 + 0x16dfbe0]
mov ebp, dword [esp + 0xa4]
mov dword [ecx + ebp], ebx
mov ebx, dword [esp + 0xd4]
test dword [ebx], 0x20000
je 0x50417a
mov ebx, dword [esp + 0x34]
mov ebx, dword [ebx - 4]
mov ebp, dword [esp + 0x9c]
mov dword [ecx + ebp], ebx
mov ebx, dword [esp + 0x34]
mov ebp, dword [ebx]
mov ebx, dword [esp + 0x38]
mov dword [esi + ebx + 4], ebp
mov ebp, dword [esp + 0x34]
mov ebp, dword [ebp + 4]
mov dword [esi + ebx + 8], ebp
mov ebx, dword [edi]
mov ebp, dword [esp + 0x88]
add edi, 4
mov dword [ecx + ebp], ebx
mov ebp, dword [edi]
mov ebx, dword [esp + 0x40]
add edi, 4
mov dword [ebx + esi + 4], ebp
mov ebp, dword [edi]
mov dword [ebx + esi + 8], ebp
mov ebp, dword [0x17efc00]
add edi, 4
cmp ebp, 4
jne 0x5041b3
mov ebp, dword [edi]
mov dword [esi + ebx + 0xc], ebp
add edi, 4
mov ebx, dword [esp + 0x90]
mov ebp, dword [esp + 0x34]
add esi, ebx
add ecx, ebx
mov ebx, dword [esp + 0x3c]
add ebp, 0xc
inc ebx
mov dword [esp + 0x34], ebp
cmp ebx, dword [0x17efc28]
mov dword [esp + 0x3c], ebx
jl 0x503e03
mov ecx, esi
and ecx, 0x1f
je 0x5041fc
mov eax, 0x20
sub eax, ecx
sar eax, 2
nop
mov dword [esi], 0
add esi, 4
dec eax
jne 0x5041f0
mov eax, dword [esp + 0xd4]
mov eax, dword [eax + 0x684]
call fcn.004cafd0
mov eax, dword [esp + 0xd8]
mov ecx, dword [0x1548ab4]
mov ebp, dword [0x1548ab8]
add ecx, eax
mov dword [0x1548ab4], ecx
mov ecx, dword [esp + 0xdc]
push ecx
push 0x1403
push eax
inc ebp
push 4
mov dword [0x1548ab8], ebp
call dword [0x15340dc]
mov edx, dword [0x1549080]
push 0x84f2
push edx
call dword [0x1533af0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc0
ret