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

Disassembly:
push 0xffffffffffffffff
push 0x4d7296
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x51d260]
xor eax, esp
mov dword [esp + 0xbc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x51d260]
xor eax, esp
push eax
lea eax, [esp + 0xd4]
mov dword fs:[0], eax
mov dword [esp + 0x24], ecx
xor ebx, ebx
mov eax, 0xf
mov dword [esp + 0xdc], ebx
mov dword [esp + 0x94], eax
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], bl
mov dword [esp + 0xb0], eax
mov dword [esp + 0xac], ebx
mov byte [esp + 0x9c], bl
mov dword [esp + 0x64], eax
or eax, 0xffffffff
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
lea ecx, [esp + 0x28]
mov byte [esp + 0xdc], 3
call fcn.0043abe0
mov eax, dword [esp + 0xf8]
cmp eax, ebx
mov byte [esp + 0xdc], 4
mov dword [esp + 0x40], eax
jle 0x403a22
mov eax, 0x270f
mov esi, 0x50100c
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], esi
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403895
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x84]
call fcn.004018a0
mov esi, dword [esp + 0x90]
mov ecx, esi
cmp esi, 0x27
jb 0x4038bf
mov ecx, 0x27
mov edi, dword [esp + 0x94]
mov ebp, dword [esp + 0x80]
mov eax, ebp
cmp edi, 0x10
jae 0x4038db
lea eax, [esp + 0x80]
push ecx
push 0x4dd6e8
push eax
call fcn.00401010
add esp, 0xc
test eax, eax
jne 0x4038fd
cmp esi, 0x27
jb 0x4038fd
cmp esi, 0x27
setne al
test eax, eax
je 0x403953
mov edx, ebp
cmp edi, 0x10
jae 0x40390b
lea edx, [esp + 0x80]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403910
sub eax, esi
push eax
push ebx
push edx
lea ecx, [esp + 0xf0]
call fcn.004013c0
cmp eax, 0xffffffff
je 0x403941
sub eax, ebx
cmp dword [esp + 0x14], eax
jl 0x403941
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
inc dword [esp + 0x1c]
add dword [esp + 0x18], 0x44
mov esi, dword [esp + 0x18]
jmp 0x403890
cmp dword [esp + 0x14], 0x270f
je 0x403a17
mov eax, dword [esp + 0x20]
mov ecx, eax
shl ecx, 4
add ecx, eax
lea ecx, [ecx*4 + 0x50100c]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403978
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x84]
call fcn.004018a0
mov edx, dword [esp + 0x14]
push edx
push ebx
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0xf0]
call fcn.00401b90
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0xa4]
mov byte [esp + 0xe8], 5
call fcn.004017c0
cmp dword [esp + 0xcc], 0x10
mov byte [esp + 0xdc], 4
jb 0x4039e4
mov ecx, dword [esp + 0xb8]
push ecx
call fcn.0048f8b2
add esp, 4
mov edx, dword [esp + 0x90]
mov eax, dword [esp + 0xac]
lea ecx, [esp + 0x98]
add eax, edx
push ecx
lea ecx, [esp + 0x2c]
lea ebx, [ebx + eax - 1]
call fcn.004035a0
lea edx, [esp + 0x7c]
push edx
lea ecx, [esp + 0x2c]
call fcn.004035a0
inc ebx
cmp ebx, dword [esp + 0x40]
jl 0x403872
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
cmp esi, ecx
jbe 0x403a37
call fcn.004a067d
mov ecx, dword [esp + 0x38]
mov ebp, dword [esp + 0x28]
jmp 0x403a40
mov edi, ecx
cmp dword [esp + 0x34], ecx
jbe 0x403a51
call fcn.004a067d
mov ecx, dword [esp + 0x38]
test ebp, ebp
je 0x403a5b
cmp ebp, dword [esp + 0x28]
je 0x403a64
call fcn.004a067d
mov ecx, dword [esp + 0x38]
cmp esi, edi
je 0x403afc
test ebp, ebp
jne 0x403a8c
call fcn.004a067d
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x403a81
call fcn.004a067d
cmp dword [esi + 0x18], 0x10
jb 0x403a91
mov edx, dword [esi + 4]
jmp 0x403a94
mov eax, dword [ebp]
jmp 0x403a77
lea edx, [esi + 4]
mov eax, edx
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403aa0
sub eax, edi
push eax
push edx
lea ecx, [esp + 0xa0]
call fcn.004018a0
cmp dword [esp + 0xac], 0
jne 0x403ad6
push esi
push ebp
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x34]
call fcn.00402610
jmp 0x403a22
test ebp, ebp
jne 0x403af7
call fcn.004a067d
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x403aeb
call fcn.004a067d
mov ecx, dword [esp + 0x38]
add esi, 0x1c
jmp 0x403a40
mov eax, dword [ebp]
jmp 0x403ae1
mov esi, ecx
sub esi, dword [esp + 0x34]
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x14], 0
test eax, eax
jle 0x403e7d
mov edx, dword [esp + 0x24]
add edx, 8
mov dword [esp + 0x44], edx
mov dword [esp + 0x20], 0
lea esp, [esp]
sub ecx, dword [esp + 0x34]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x14], eax
jb 0x403b62
call fcn.004a067d
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x20]
push 0xffffffffffffffff
xor esi, esi
add ecx, edx
push esi
push ecx
lea ecx, [esp + 0xa4]
call fcn.004017c0
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], 0x50177c
mov edi, edi
mov esi, dword [esp + 0x18]
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403ba0
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x84]
call fcn.004018a0
cmp dword [esp + 0xb0], 0x10
mov edx, dword [esp + 0x9c]
jae 0x403bcf
lea edx, [esp + 0x9c]
mov esi, dword [esp + 0x90]
mov edi, dword [esp + 0xac]
mov ecx, esi
cmp esi, edi
jb 0x403be5
mov ecx, edi
mov ebp, dword [esp + 0x94]
mov ebx, dword [esp + 0x80]
mov eax, ebx
cmp ebp, 0x10
jae 0x403c01
lea eax, [esp + 0x80]
push ecx
push edx
push eax
call fcn.00401010
add esp, 0xc
test eax, eax
jne 0x403c1d
cmp esi, edi
jb 0x403c1d
cmp esi, edi
setne al
test eax, eax
je 0x403c70
inc dword [esp + 0x1c]
add dword [esp + 0x18], 0x44
mov ecx, esi
cmp esi, 0x27
jb 0x403c32
mov ecx, 0x27
mov eax, ebx
cmp ebp, 0x10
jae 0x403c40
lea eax, [esp + 0x80]
push ecx
push 0x4dd6e8
push eax
call fcn.00401010
add esp, 0xc
test eax, eax
jne 0x403b90
cmp esi, 0x27
jb 0x403b90
cmp esi, 0x27
setne al
test eax, eax
jne 0x403b90
jmp 0x403c78
mov dword [esp + 0x24], 1
xor ebx, ebx
push ebx
push 0x4dd6d7
lea ecx, [esp + 0x54]
call fcn.004018a0
or eax, 0xffffffff
push eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
push ebx
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x58]
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
call fcn.004017c0
mov ebp, 1
cmp dword [esp + 0x24], ebp
jne 0x403cfe
mov eax, dword [esp + 0x1c]
mov esi, eax
shl esi, 4
add esi, eax
add esi, esi
add esi, esi
lea ecx, [esi + 0x50177c]
mov eax, ecx
lea edi, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403ce0
sub eax, edi
push eax
push ecx
lea ecx, [esp + 0x54]
call fcn.004018a0
mov ecx, dword [esi + 0x501778]
mov dword [esp + 0x68], ecx
cmp dword [esp + 0x68], ebx
jge 0x403e52
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x50]
mov esi, 0x10
mov dword [esp + 0xcc], 0xf
mov dword [esp + 0xc8], ebx
mov byte [esp + 0xb8], bl
mov ecx, eax
cmp edx, esi
jae 0x403d38
lea ecx, [esp + 0x50]
cmp byte [ecx], 0x30
jne 0x403dcf
cmp dword [esp + 0x60], ebp
jae 0x403d54
call fcn.004a067d
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x50]
mov ecx, eax
cmp edx, esi
jae 0x403d5e
lea ecx, [esp + 0x50]
cmp byte [ecx + 1], 0x78
je 0x403d87
cmp dword [esp + 0x60], ebp
jae 0x403d77
call fcn.004a067d
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x50]
mov ecx, eax
cmp edx, esi
jae 0x403d81
lea ecx, [esp + 0x50]
cmp byte [ecx + 1], 0x58
jne 0x403dcf
cmp edx, esi
jae 0x403d8f
lea eax, [esp + 0x50]
push esi
push ebx
push eax
call fcn.004a0f92
add esp, 0xc
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
test eax, eax
jge 0x403dac
fadd qword [0x4dd6e0]
fstp qword [esp + 0x74]
mov dword [esp + 0x68], 0x147
cmp dword [esp + 0xcc], esi
jb 0x403e52
mov edx, dword [esp + 0xb8]
push edx
jmp 0x403e4a
cmp edx, esi
jae 0x403dd7
lea eax, [esp + 0x50]
push ebx
push eax
call fcn.004a0d21
fldz
fucomp st(1)
add esp, 8
fnstsw ax
test ah, 0x44
jp 0x403e2d
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x50]
mov ecx, eax
cmp edx, esi
jae 0x403dfe
lea ecx, [esp + 0x50]
cmp byte [ecx], 0x30
je 0x403e2d
fstp st(0)
cmp edx, esi
jae 0x403e0d
lea eax, [esp + 0x50]
cmp byte [eax], 0x56
jne 0x403e1a
mov dword [esp + 0x68], 0x270f
cmp dword [esp + 0xcc], esi
jb 0x403e52
mov eax, dword [esp + 0xb8]
push eax
jmp 0x403e4a
fstp qword [esp + 0x74]
mov dword [esp + 0x68], 0x147
cmp dword [esp + 0xcc], esi
jb 0x403e52
mov ecx, dword [esp + 0xb8]
push ecx
call fcn.0048f8b2
add esp, 4
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x4c]
push edx
call fcn.00403650
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], 0x1c
mov ecx, dword [esp + 0x38]
add eax, ebp
cmp eax, dword [esp + 0x40]
mov dword [esp + 0x14], eax
jl 0x403b40
mov esi, dword [esp + 0x34]
xor ebx, ebx
lea ebp, [ebx + 0x10]
cmp esi, ebx
je 0x403ec7
mov edi, ecx
cmp esi, ecx
je 0x403ebe
add esi, 0x18
cmp dword [esi], ebp
jb 0x403ea3
mov eax, dword [esi - 0x14]
push eax
call fcn.0048f8b2
add esp, 4
mov dword [esi], 0xf
mov dword [esi - 4], ebx
mov byte [esi - 0x14], 0
add esi, 0x1c
lea ecx, [esi - 0x18]
cmp ecx, edi
jne 0x403e93
mov esi, dword [esp + 0x34]
push esi
call fcn.0048f8b2
add esp, 4
mov edx, dword [esp + 0x28]
push edx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call fcn.0048f8b2
add esp, 4
cmp dword [esp + 0x64], ebp
jb 0x403ef3
mov eax, dword [esp + 0x50]
push eax
call fcn.0048f8b2
add esp, 4
mov esi, 0xf
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], 0
cmp dword [esp + 0xb0], ebp
jb 0x403f1e
mov ecx, dword [esp + 0x9c]
push ecx
call fcn.0048f8b2
add esp, 4
mov dword [esp + 0xb0], esi
mov dword [esp + 0xac], ebx
mov byte [esp + 0x9c], 0
cmp dword [esp + 0x94], ebp
jb 0x403f4d
mov edx, dword [esp + 0x80]
push edx
call fcn.0048f8b2
add esp, 4
mov dword [esp + 0x94], esi
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], 0
cmp dword [esp + 0xfc], ebp
jb 0x403f7c
mov eax, dword [esp + 0xe8]
push eax
call fcn.0048f8b2
add esp, 4
mov ecx, dword [esp + 0xd4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xbc]
xor ecx, esp
call fcn.004a0abf
add esp, 0xcc
ret 0x1c