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

Disassembly:
push 0xffffffffffffffff
push 0x520d83
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x178
mov al, byte [0x55b378]
push ebx
push ebp
mov ebp, ecx
push esi
push edi
test al, al
mov dword [esp + 0x3c], ebp
je 0x406f02
lea ecx, [esp + 0x1c]
call fcn.0048a5e0
lea eax, [esp + 0x1c]
mov ecx, ebp
push eax
mov dword [esp + 0x194], 0
call fcn.00404740
mov ecx, dword [esp + 0x19c]
lea edx, [esp + 0x1c]
push edx
push 1
mov eax, dword [ecx + 8]
push eax
call fcn.00405d10
lea ecx, [esp + 0x1c]
mov dword [esp + 0x190], 0xffffffff
call fcn.0048a720
mov ax, 1
jmp 0x4076e6
lea ecx, [esp + 0x44]
xor esi, esi
mov byte [esp + 0x14], 0
mov byte [esp + 0x15], 0
call fcn.00496190
lea ecx, [esp + 0x64]
mov dword [esp + 0x190], 1
call fcn.004974f0
lea ecx, [esp + 0x30]
mov byte [esp + 0x190], 2
call fcn.0048a5e0
lea ecx, [esp + 0x10]
mov byte [esp + 0x190], 3
call fcn.0048a5e0
lea ecx, [esp + 0x24]
mov byte [esp + 0x190], 4
call fcn.0048a5e0
lea ecx, [esp + 0x20]
mov byte [esp + 0x190], 5
call fcn.0048a5e0
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x88]
push 0x100
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x19c]
lea eax, [esp + 0x8c]
push eax
mov byte [esp + 0x198], 6
call fcn.00496d40
mov al, byte [esp + 0x88]
mov bl, 1
cmp al, bl
jl 0x406fde
mov eax, 1
mov cl, byte [esp + eax + 0x88]
push ecx
lea ecx, [esp + 0x24]
call fcn.0048aa50
movsx edx, byte [esp + 0x88]
inc bl
mov byte [esp + 0x28], bl
mov eax, dword [esp + 0x28]
and eax, 0xff
cmp eax, edx
jle 0x406fb2
cmp byte [ebp + 4], 5
jne 0x406ff2
lea eax, [esp + 0x20]
mov ecx, ebp
push eax
call fcn.004079d0
jmp 0x406ffe
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebp
call fcn.004069f0
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.0048a5f0
lea ecx, [esp + 0x34]
call fcn.0048a8d0
movzx ax, byte [esp + 0x1a0]
lea ecx, [esp + 0x30]
mov word [esp + 0x34], ax
push ecx
lea ecx, [esp + 0x48]
call fcn.00496700
sub esp, 0x24
lea eax, [esp + 0x68]
mov edx, esp
mov dword [esp + 0x3c], esp
push 0
push eax
push edx
mov ecx, 0x55b398
call fcn.00493e70
lea ecx, [esp + 0x88]
call fcn.004976a0
lea ecx, [esp + 0x64]
call fcn.00497ad0
test ax, ax
jle 0x407679
push 0
lea ecx, [esp + 0x68]
call fcn.00497a10
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x407085
mov byte [esp + 0x16], cl
jmp 0x407091
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 2
mov byte [esp + 0x16], al
mov al, byte [esp + 0x16]
mov byte [esp + 0x38], 0
test al, al
jbe 0x407580
mov esi, dword [esp + 0x19c]
mov ecx, dword [esp + 0x38]
and ecx, 0xff
push ecx
push 0
lea ecx, [esp + 0x6c]
call fcn.00497a10
mov ecx, eax
call fcn.00405cb0
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.0048a5f0
lea ecx, [esp + 0x14]
call fcn.0048a8d0
lea ecx, [esp + 0x10]
call fcn.0048ab50
cmp al, 1
mov byte [esp + 0x28], al
jbe 0x40755e
mov cl, byte [ebp + 5]
test cl, cl
je 0x40715b
mov edx, dword [esp + 0x28]
xor bl, bl
and edx, 0xff
mov byte [esp + 0x17], 0
lea edi, [edx - 1]
test edi, edi
jle 0x407141
xor ax, ax
lea ecx, [esp + 0x10]
mov al, bl
push eax
call fcn.0048a9e0
mov cl, byte [esp + 0x17]
add cl, al
inc bl
mov byte [esp + 0x40], bl
mov byte [esp + 0x17], cl
mov ecx, dword [esp + 0x40]
and ecx, 0xff
cmp ecx, edi
jl 0x407110
mov al, byte [esp + 0x28]
xor dx, dx
lea ecx, [esp + 0x10]
mov dl, al
dec edx
push edx
call fcn.0048a9e0
cmp byte [esp + 0x17], al
jne 0x4075f1
mov al, byte [ebp + 4]
test al, al
je 0x4071d4
cmp al, 1
je 0x4071d4
cmp al, 4
je 0x4071d4
movzx ax, al
mov word [esp + 0x1c], ax
mov al, byte [esp + 0x15]
test al, al
je 0x40740a
movzx ax, byte [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
call fcn.0048a9e0
cmp al, 0x7f
je 0x407566
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
sub ecx, eax
mov edi, eax
sar ecx, 2
cmp ecx, 1
jae 0x4073bf
mov edx, dword [esi + 4]
test edx, edx
je 0x4071c0
mov ecx, eax
sub ecx, edx
sar ecx, 2
cmp ecx, 1
ja 0x4071c5
mov ecx, 1
test edx, edx
jne 0x40734a
xor eax, eax
jmp 0x40734f
push 0
lea ecx, [esp + 0x14]
call fcn.0048a9e0
cmp al, 0x80
jne 0x4071f7
mov byte [esp + 0x14], 4
mov byte [esp + 0x15], 1
mov dword [esp + 0x1c], 1
jmp 0x40723b
push 0
lea ecx, [esp + 0x14]
call fcn.0048a9e0
cmp al, 0x48
jne 0x407229
push 1
lea ecx, [esp + 0x14]
call fcn.0048a9e0
cmp al, 0x6b
jne 0x407229
mov byte [esp + 0x14], 3
mov byte [esp + 0x15], 1
mov dword [esp + 0x1c], 4
jmp 0x40723b
mov byte [esp + 0x14], 3
mov byte [esp + 0x15], 1
mov dword [esp + 0x1c], 0
movzx di, byte [esp + 0x14]
push edi
lea ecx, [esp + 0x14]
call fcn.0048a9e0
cmp al, 0x7f
jne 0x40717f
mov bl, byte [esp + 0x1a0]
cmp bl, 0xff
je 0x40717f
cmp byte [ebp + 4], 5
je 0x40717f
lea ecx, [esp + 0x64]
call fcn.00497af0
lea ecx, [esp + 0x2c]
call fcn.0048a5e0
lea ecx, [esp + 0x54]
mov byte [esp + 0x190], 7
call fcn.00496190
push ecx
lea edx, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
mov byte [esp + 0x198], 8
call fcn.0048a5f0
lea ecx, [esp + 0x58]
call fcn.004963e0
push 1
lea ecx, [esp + 0x58]
call fcn.004968f0
sub esp, 0x24
lea ecx, [esp + 0x78]
mov eax, esp
mov dword [esp + 0x3c], esp
push 0
push ecx
push eax
mov ecx, 0x55b398
call fcn.00493e70
lea ecx, [esp + 0x88]
call fcn.004976a0
push ecx
lea ecx, [esp + 0x68]
mov edx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.00497a20
lea ecx, [esp + 0x14]
call fcn.0048a8d0
lea ecx, [esp + 0x10]
call fcn.0048ab50
cmp ax, 1
mov byte [esp + 0x190], 7
lea ecx, [esp + 0x54]
jl 0x407663
call fcn.004961b0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x190], 6
call fcn.0048a720
push edi
lea ecx, [esp + 0x14]
call fcn.0048a9e0
cmp al, 0x7f
je 0x40725a
jmp 0x40717f
sub eax, edx
sar eax, 2
add eax, ecx
test eax, eax
mov dword [esp + 0x18], eax
jge 0x40735b
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 + 0x10]
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 + 0x1c]
add esp, 4
jmp 0x4074b0
mov edx, eax
sub edx, edi
sar edx, 2
cmp edx, 1
jb 0x4074dd
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 + 0x1c]
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 0x407566
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
sub ecx, eax
mov edi, eax
sar ecx, 2
cmp ecx, 1
jae 0x4074d1
mov edx, dword [esi + 4]
test edx, edx
je 0x407433
mov ecx, eax
sub ecx, edx
sar ecx, 2
cmp ecx, 1
ja 0x407438
mov ecx, 1
test edx, edx
jne 0x407440
xor eax, eax
jmp 0x407445
sub eax, edx
sar eax, 2
add eax, ecx
test eax, eax
mov dword [esp + 0x18], eax
jge 0x407451
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 + 0x10]
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 + 0x1c]
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 + 0x3c]
mov dword [esi + 8], ecx
jmp 0x407566
mov edx, eax
sub edx, edi
sar edx, 2
cmp edx, 1
jae 0x407526
lea ecx, [edi + 4]
push ecx
push eax
push edi
mov ecx, esi
call fcn.004060b0
mov eax, dword [esi + 8]
lea edx, [esp + 0x10]
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 + 0x10]
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 0x407566
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 + 0x1c]
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 0x407566
mov dword [esp + 0x1c], 0xffffff9b
mov al, byte [esp + 0x38]
mov cl, byte [esp + 0x16]
inc al
cmp al, cl
mov byte [esp + 0x38], al
jb 0x4070a9
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
mov byte [esp + 0x190], 5
call fcn.0048a720
lea ecx, [esp + 0x24]
mov byte [esp + 0x190], 4
call fcn.0048a720
lea ecx, [esp + 0x10]
mov byte [esp + 0x190], 3
call fcn.0048a720
lea ecx, [esp + 0x30]
mov byte [esp + 0x190], 2
call fcn.0048a720
lea ecx, [esp + 0x64]
mov byte [esp + 0x190], 1
call fcn.004975f0
lea ecx, [esp + 0x44]
mov dword [esp + 0x190], 0xffffffff
call fcn.004961b0
mov ax, si
jmp 0x4076e6
lea ecx, [esp + 0x20]
mov byte [esp + 0x190], 5
call fcn.0048a720
lea ecx, [esp + 0x24]
mov byte [esp + 0x190], 4
call fcn.0048a720
lea ecx, [esp + 0x10]
mov byte [esp + 0x190], 3
call fcn.0048a720
lea ecx, [esp + 0x30]
mov byte [esp + 0x190], 2
call fcn.0048a720
lea ecx, [esp + 0x64]
mov byte [esp + 0x190], 1
call fcn.004975f0
lea ecx, [esp + 0x44]
mov dword [esp + 0x190], 0xffffffff
call fcn.004961b0
mov ax, 0xff9a
jmp 0x4076e6
call fcn.004961b0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x190], 6
call fcn.0048a720
lea ecx, [esp + 0x20]
mov byte [esp + 0x190], 5
call fcn.0048a720
lea ecx, [esp + 0x24]
mov byte [esp + 0x190], 4
call fcn.0048a720
lea ecx, [esp + 0x10]
mov byte [esp + 0x190], 3
call fcn.0048a720
lea ecx, [esp + 0x30]
mov byte [esp + 0x190], 2
call fcn.0048a720
lea ecx, [esp + 0x64]
mov byte [esp + 0x190], 1
call fcn.004975f0
lea ecx, [esp + 0x44]
mov dword [esp + 0x190], 0xffffffff
call fcn.004961b0
mov ax, 0xff9b
mov ecx, dword [esp + 0x188]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x184
ret 0xc