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

Disassembly:
push 0xffffffffffffffff
push 0x52099d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x164
mov al, byte [0x55b378]
push ebx
push ebp
mov ebp, ecx
push esi
push edi
test al, al
mov dword [esp + 0x38], ebp
je 0x403fd2
lea ecx, [esp + 0x20]
call fcn.0048a5e0
lea eax, [esp + 0x20]
mov ecx, ebp
push eax
mov dword [esp + 0x180], 0
call fcn.00404740
mov ecx, dword [esp + 0x188]
lea edx, [esp + 0x20]
push edx
push 1
mov eax, dword [ecx + 8]
push eax
call fcn.00405d10
lea ecx, [esp + 0x20]
mov dword [esp + 0x17c], 0xffffffff
call fcn.0048a720
mov ax, 1
jmp 0x404688
lea ecx, [esp + 0x40]
xor esi, esi
mov byte [esp + 0x11], 0
call fcn.00496190
lea ecx, [esp + 0x50]
mov dword [esp + 0x17c], 1
call fcn.004974f0
lea ecx, [esp + 0x30]
mov byte [esp + 0x17c], 2
call fcn.0048a5e0
lea ecx, [esp + 0x18]
mov byte [esp + 0x17c], 3
call fcn.0048a5e0
lea ecx, [esp + 0x14]
mov byte [esp + 0x17c], 4
call fcn.0048a5e0
lea ecx, [esp + 0x24]
mov byte [esp + 0x17c], 5
call fcn.0048a5e0
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x74]
push 0x100
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x188]
lea eax, [esp + 0x78]
push eax
mov byte [esp + 0x184], 6
call fcn.00496d40
mov al, byte [esp + 0x74]
mov bl, 1
cmp al, bl
jl 0x40409a
mov eax, 1
mov cl, byte [esp + eax + 0x74]
push ecx
lea ecx, [esp + 0x28]
call fcn.0048aa50
movsx edx, byte [esp + 0x74]
inc bl
mov byte [esp + 0x28], bl
mov eax, dword [esp + 0x28]
and eax, 0xff
cmp eax, edx
jle 0x404074
lea eax, [esp + 0x24]
mov ecx, ebp
push eax
call fcn.00403b60
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.0048a5f0
lea ecx, [esp + 0x34]
call fcn.0048a8d0
movzx ax, byte [esp + 0x18c]
lea ecx, [esp + 0x30]
mov word [esp + 0x34], ax
push ecx
lea ecx, [esp + 0x44]
call fcn.00496700
sub esp, 0x24
lea eax, [esp + 0x64]
mov edx, esp
mov dword [esp + 0x40], esp
push 0
push eax
push edx
mov ecx, 0x55b398
call fcn.00493e70
lea ecx, [esp + 0x74]
call fcn.004976a0
lea ecx, [esp + 0x50]
call fcn.00497ad0
test ax, ax
jle 0x40461b
push 0
lea ecx, [esp + 0x54]
call fcn.00497a10
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x40412a
mov byte [esp + 0x13], cl
jmp 0x404136
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 2
mov byte [esp + 0x13], al
mov al, byte [esp + 0x13]
mov byte [esp + 0x2c], 0
test al, al
jbe 0x40453b
mov esi, dword [esp + 0x188]
mov ecx, dword [esp + 0x2c]
and ecx, 0xff
push ecx
push 0
lea ecx, [esp + 0x58]
call fcn.00497a10
mov ecx, eax
call fcn.00405cb0
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.0048a5f0
lea ecx, [esp + 0x1c]
call fcn.0048a8d0
lea ecx, [esp + 0x18]
call fcn.0048ab50
cmp al, 1
mov byte [esp + 0x28], al
jbe 0x404519
mov cl, byte [ebp + 5]
test cl, cl
je 0x404200
mov edx, dword [esp + 0x28]
xor bl, bl
and edx, 0xff
mov byte [esp + 0x12], 0
lea edi, [edx - 1]
test edi, edi
jle 0x4041e6
xor ax, ax
lea ecx, [esp + 0x18]
mov al, bl
push eax
call fcn.0048a9e0
mov cl, byte [esp + 0x12]
add cl, al
inc bl
mov byte [esp + 0x3c], bl
mov byte [esp + 0x12], cl
mov ecx, dword [esp + 0x3c]
and ecx, 0xff
cmp ecx, edi
jl 0x4041b5
mov al, byte [esp + 0x28]
xor dx, dx
lea ecx, [esp + 0x18]
mov dl, al
dec edx
push edx
call fcn.0048a9e0
cmp byte [esp + 0x12], al
jne 0x4045ac
mov al, byte [ebp + 4]
test al, al
je 0x40427f
cmp al, 1
je 0x40427f
cmp al, 4
je 0x40427f
movzx ax, al
mov word [esp + 0x20], ax
mov al, byte [esp + 0x11]
test al, al
je 0x4043a4
push ecx
lea edx, [esp + 0x1c]
mov edi, esp
mov dword [esp + 0x20], esp
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.0048a5f0
push edi
mov ecx, ebp
call fcn.00403a30
lea ecx, [esp + 0x18]
call fcn.0048a8d0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
sub ecx, eax
mov edi, eax
sar ecx, 2
cmp ecx, 1
jae 0x404359
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4042df
sub eax, ecx
sar eax, 2
cmp eax, 1
jbe 0x4042df
mov ecx, esi
call fcn.00405c90
mov ebx, eax
jmp 0x4042e4
push 0
lea ecx, [esp + 0x1c]
call fcn.0048a9e0
cmp al, 0x80
jne 0x40429d
mov byte [esp + 0x11], 1
mov dword [esp + 0x20], 1
jmp 0x404224
push 0
lea ecx, [esp + 0x1c]
call fcn.0048a9e0
cmp al, 0x48
jne 0x4042cd
push 1
lea ecx, [esp + 0x1c]
call fcn.0048a9e0
cmp al, 0x6b
jne 0x4042cd
mov byte [esp + 0x11], 1
mov dword [esp + 0x20], 4
jmp 0x404224
mov byte [esp + 0x11], 1
mov dword [esp + 0x20], 0
jmp 0x404224
mov ebx, 1
mov ecx, esi
call fcn.00405c90
add eax, ebx
mov dword [esp + 0x1c], eax
jns 0x4042f5
xor eax, eax
lea edx, [eax*4]
push edx
call fcn.00514b36
add esp, 4
mov ebp, eax
mov eax, dword [esi + 4]
mov ecx, esi
push ebp
push edi
push eax
call fcn.004060b0
lea ecx, [esp + 0x14]
mov ebx, eax
push ecx
push 1
push ebx
mov ecx, esi
call fcn.004060f0
mov edx, dword [esi + 8]
add ebx, 4
push ebx
push edx
push edi
mov ecx, esi
call fcn.004060b0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
mov ecx, esi
call fcn.00405f70
mov eax, dword [esi + 4]
push eax
call fcn.00514120
mov edx, dword [esp + 0x20]
add esp, 4
jmp 0x40446b
mov edx, eax
sub edx, edi
sar edx, 2
cmp edx, 1
jb 0x404498
push eax
push eax
add eax, 0xfffffffc
mov ecx, esi
push eax
call fcn.004060b0
mov eax, dword [esi + 8]
push eax
add eax, 0xfffffffc
push eax
push edi
call fcn.00406160
lea edx, [esp + 0x20]
lea eax, [edi + 4]
push edx
push eax
push edi
call fcn.00406120
mov eax, dword [esi + 8]
add esp, 0x18
add eax, 4
mov dword [esi + 8], eax
jmp 0x404521
push ecx
lea edx, [esp + 0x1c]
mov edi, esp
mov dword [esp + 0x20], esp
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.0048a5f0
push edi
mov ecx, ebp
call fcn.00403a30
lea ecx, [esp + 0x18]
call fcn.0048a8d0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
sub ecx, eax
mov edi, eax
sar ecx, 2
cmp ecx, 1
jae 0x40448c
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4043f6
sub eax, ecx
sar eax, 2
cmp eax, 1
mov ebx, eax
ja 0x4043fb
mov ebx, 1
mov ecx, esi
call fcn.00405c90
add eax, ebx
mov dword [esp + 0x1c], eax
jns 0x40440c
xor eax, eax
lea edx, [eax*4]
push edx
call fcn.00514b36
add esp, 4
mov ebp, eax
mov eax, dword [esi + 4]
mov ecx, esi
push ebp
push edi
push eax
call fcn.004060b0
lea ecx, [esp + 0x14]
mov ebx, eax
push ecx
push 1
push ebx
mov ecx, esi
call fcn.004060f0
mov edx, dword [esi + 8]
add ebx, 4
push ebx
push edx
push edi
mov ecx, esi
call fcn.004060b0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
mov ecx, esi
call fcn.00405f70
mov eax, dword [esi + 4]
push eax
call fcn.00514120
mov edx, dword [esp + 0x20]
add esp, 4
lea eax, [ebp + edx*4]
mov ecx, esi
mov dword [esi + 0xc], eax
call fcn.00405c90
lea ecx, [ebp + eax*4 + 4]
mov dword [esi + 4], ebp
mov ebp, dword [esp + 0x38]
mov dword [esi + 8], ecx
jmp 0x404521
mov edx, eax
sub edx, edi
sar edx, 2
cmp edx, 1
jae 0x4044e1
lea ecx, [edi + 4]
push ecx
push eax
push edi
mov ecx, esi
call fcn.004060b0
mov eax, dword [esi + 8]
lea edx, [esp + 0x14]
mov ecx, eax
push edx
sub ecx, edi
mov edx, 1
sar ecx, 2
sub edx, ecx
mov ecx, esi
push edx
push eax
call fcn.004060f0
mov ecx, dword [esi + 8]
lea eax, [esp + 0x14]
push eax
push ecx
push edi
call fcn.00406120
mov eax, dword [esi + 8]
add esp, 0xc
add eax, 4
mov dword [esi + 8], eax
jmp 0x404521
push eax
push eax
add eax, 0xfffffffc
mov ecx, esi
push eax
call fcn.004060b0
mov eax, dword [esi + 8]
push eax
add eax, 0xfffffffc
push eax
push edi
call fcn.00406160
lea edx, [esp + 0x20]
lea eax, [edi + 4]
push edx
push eax
push edi
call fcn.00406120
mov eax, dword [esi + 8]
add esp, 0x18
add eax, 4
mov dword [esi + 8], eax
jmp 0x404521
mov dword [esp + 0x20], 0xffffff9b
mov al, byte [esp + 0x2c]
mov cl, byte [esp + 0x13]
inc al
cmp al, cl
mov byte [esp + 0x2c], al
jb 0x40414e
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x24]
mov byte [esp + 0x17c], 5
call fcn.0048a720
lea ecx, [esp + 0x14]
mov byte [esp + 0x17c], 4
call fcn.0048a720
lea ecx, [esp + 0x18]
mov byte [esp + 0x17c], 3
call fcn.0048a720
lea ecx, [esp + 0x30]
mov byte [esp + 0x17c], 2
call fcn.0048a720
lea ecx, [esp + 0x50]
mov byte [esp + 0x17c], 1
call fcn.004975f0
lea ecx, [esp + 0x40]
mov dword [esp + 0x17c], 0xffffffff
call fcn.004961b0
mov ax, si
jmp 0x404688
lea ecx, [esp + 0x24]
mov byte [esp + 0x17c], 5
call fcn.0048a720
lea ecx, [esp + 0x14]
mov byte [esp + 0x17c], 4
call fcn.0048a720
lea ecx, [esp + 0x18]
mov byte [esp + 0x17c], 3
call fcn.0048a720
lea ecx, [esp + 0x30]
mov byte [esp + 0x17c], 2
call fcn.0048a720
lea ecx, [esp + 0x50]
mov byte [esp + 0x17c], 1
call fcn.004975f0
lea ecx, [esp + 0x40]
mov dword [esp + 0x17c], 0xffffffff
call fcn.004961b0
mov ax, 0xff9a
jmp 0x404688
lea ecx, [esp + 0x24]
mov byte [esp + 0x17c], 5
call fcn.0048a720
lea ecx, [esp + 0x14]
mov byte [esp + 0x17c], 4
call fcn.0048a720
lea ecx, [esp + 0x18]
mov byte [esp + 0x17c], 3
call fcn.0048a720
lea ecx, [esp + 0x30]
mov byte [esp + 0x17c], 2
call fcn.0048a720
lea ecx, [esp + 0x50]
mov byte [esp + 0x17c], 1
call fcn.004975f0
lea ecx, [esp + 0x40]
mov dword [esp + 0x17c], 0xffffffff
call fcn.004961b0
mov ax, 0xff9b
mov ecx, dword [esp + 0x174]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x170
ret 0xc