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

Disassembly:
push 0xffffffffffffffff
push 0x5c9208
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x164
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
lea ecx, [esp + 0x40]
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebp
call fcn.005589e0
lea ecx, [esp + 0x50]
mov dword [esp + 0x17c], ebp
call fcn.00559c60
lea ecx, [esp + 0x34]
mov byte [esp + 0x17c], 1
call fcn.00558060
lea ecx, [esp + 0x24]
mov byte [esp + 0x17c], 2
call fcn.00558060
lea ecx, [esp + 0x3c]
mov byte [esp + 0x17c], 3
call fcn.00558060
lea ecx, [esp + 0x1c]
mov byte [esp + 0x17c], 4
call fcn.00558060
lea ecx, [esp + 0x14]
mov byte [esp + 0x17c], 5
call fcn.00558060
lea ecx, [esp + 0x18]
mov byte [esp + 0x17c], 6
call fcn.00558060
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], 7
call fcn.005594f0
mov al, byte [esp + 0x74]
mov bl, 1
cmp al, bl
jl 0x406fda
mov eax, 1
mov cl, byte [esp + eax + 0x74]
push ecx
lea ecx, [esp + 0x18]
call fcn.00558500
movsx edx, byte [esp + 0x74]
inc bl
mov byte [esp + 0x28], bl
mov eax, dword [esp + 0x28]
and eax, 0xff
cmp eax, edx
jle 0x406fb4
lea ecx, [esp + 0x40]
call fcn.00559480
cmp byte [esi + 4], 7
jne 0x4070b9
push ebp
lea ecx, [esp + 0x18]
mov bl, 1
call fcn.00558380
cmp al, bl
jb 0x4070b9
movzx si, byte [esp + 0x18c]
xor ax, ax
lea ecx, [esp + 0x14]
mov al, bl
push eax
call fcn.00558380
lea ecx, [esp + 0x23]
push 1
push ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x2b], al
call fcn.005585e0
push 0
lea ecx, [esp + 0x18]
call fcn.00558380
cmp al, 4
jne 0x407054
cmp bl, 3
jne 0x407054
push 1
lea ecx, [esp + 0x18]
call fcn.00558380
cmp al, 0x80
je 0x407054
push 2
jmp 0x40706e
push 0
lea ecx, [esp + 0x18]
call fcn.00558380
cmp al, 3
jne 0x40706c
cmp bl, 2
jne 0x40706c
push 2
jmp 0x40706e
push 1
lea ecx, [esp + 0x1c]
call fcn.00558360
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.00558070
lea ecx, [esp + 0x38]
call fcn.00558390
lea eax, [esp + 0x34]
lea ecx, [esp + 0x40]
push eax
mov word [esp + 0x3c], si
call fcn.00558eb0
push 0
lea ecx, [esp + 0x18]
inc bl
call fcn.00558380
cmp bl, al
jbe 0x40700a
sub esp, 0x24
lea edx, [esp + 0x64]
mov ecx, esp
mov dword [esp + 0x4c], esp
push 0
push edx
push ecx
mov ecx, 0x619a20
call fcn.00553230
lea ecx, [esp + 0x74]
call fcn.00559e10
lea ecx, [esp + 0x50]
call fcn.0055a240
mov ebp, eax
test bp, bp
jle 0x40736e
mov byte [esp + 0x13], 0
xor edi, edi
push edi
lea ecx, [esp + 0x54]
call fcn.0055a180
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x407184
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 2
test al, al
mov byte [esp + 0x28], al
jbe 0x407184
mov ebx, dword [esp + 0x28]
xor esi, esi
and ebx, 0xff
push esi
push edi
lea ecx, [esp + 0x58]
call fcn.0055a180
mov ecx, eax
call fcn.00402a80
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.00558070
lea ecx, [esp + 0x28]
call fcn.00558390
lea ecx, [esp + 0x24]
call fcn.00558520
cmp al, 1
jbe 0x40716a
mov eax, dword [esp + 0x30]
movzx cx, byte [eax + 4]
mov word [esp + 0x2c], cx
jmp 0x407172
mov dword [esp + 0x2c], 0xffffff9b
lea edx, [esp + 0x24]
lea ecx, [esp + 0x1c]
push edx
call fcn.00558330
inc esi
dec ebx
jne 0x407125
mov al, byte [esp + 0x13]
inc al
movzx di, al
cmp di, bp
mov byte [esp + 0x13], al
jl 0x4070f8
mov esi, dword [esp + 0x188]
mov edi, dword [esi + 8]
mov eax, dword [esi + 0xc]
sub eax, edi
sar eax, 2
cmp eax, 1
jae 0x40725c
mov ecx, esi
call fcn.0056e680
cmp eax, 1
jbe 0x4071cd
mov ecx, esi
call fcn.0056e680
mov ebx, eax
jmp 0x4071d2
mov ebx, 1
mov ecx, esi
call fcn.0056e680
add eax, ebx
mov dword [esp + 0x30], eax
jns 0x4071e3
xor eax, eax
lea ecx, [eax*4]
push ecx
call fcn.005bcf2f
mov edx, dword [esi + 4]
add esp, 4
mov ebp, eax
mov ecx, esi
push ebp
push edi
push edx
call fcn.00402d20
mov ebx, eax
lea eax, [esp + 0x1c]
push eax
push 1
push ebx
mov ecx, esi
call fcn.00402d60
mov ecx, dword [esi + 8]
add ebx, 4
push ebx
push ecx
push edi
mov ecx, esi
call fcn.00402d20
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
push edx
push eax
mov ecx, esi
call fcn.00402cf0
mov eax, dword [esi + 4]
push eax
call fcn.005bc500
mov ecx, dword [esp + 0x34]
add esp, 4
lea edx, [ebp + ecx*4]
mov ecx, esi
mov dword [esi + 0xc], edx
call fcn.0056e680
lea eax, [ebp + eax*4 + 4]
mov dword [esi + 4], ebp
mov dword [esi + 8], eax
jmp 0x4072d9
mov ecx, edi
sub ecx, edi
sar ecx, 2
cmp ecx, 1
jae 0x4072a8
lea edx, [edi + 4]
mov ecx, esi
push edx
push edi
push edi
call fcn.00402d20
mov eax, dword [esi + 8]
lea ecx, [esp + 0x1c]
mov edx, eax
push ecx
sub edx, edi
mov ecx, 1
sar edx, 2
sub ecx, edx
push ecx
push eax
mov ecx, esi
call fcn.00402d60
mov eax, dword [esi + 8]
lea edx, [esp + 0x1c]
push edx
push eax
push edi
call fcn.00402d90
add esp, 0xc
jmp 0x4072d5
push edi
lea ecx, [edi - 4]
push edi
push ecx
mov ecx, esi
call fcn.00402d20
mov eax, dword [esi + 8]
push eax
add eax, 0xfffffffc
push eax
push edi
call fcn.00402dd0
lea edx, [esp + 0x28]
lea eax, [edi + 4]
push edx
push eax
push edi
call fcn.00402d90
add esp, 0x18
add dword [esi + 8], 4
lea ecx, [esp + 0x18]
mov byte [esp + 0x17c], 6
call fcn.005581a0
lea ecx, [esp + 0x14]
mov byte [esp + 0x17c], 5
call fcn.005581a0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x17c], 4
call fcn.005581a0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x17c], 3
call fcn.005581a0
lea ecx, [esp + 0x24]
mov byte [esp + 0x17c], 2
call fcn.005581a0
lea ecx, [esp + 0x34]
mov byte [esp + 0x17c], 1
call fcn.005581a0
lea ecx, [esp + 0x50]
mov byte [esp + 0x17c], 0
call fcn.00559d60
lea ecx, [esp + 0x40]
mov dword [esp + 0x17c], 0xffffffff
call fcn.00558a00
mov ax, word [esp + 0x2c]
jmp 0x4073fd
lea ecx, [esp + 0x18]
mov byte [esp + 0x17c], 6
call fcn.005581a0
lea ecx, [esp + 0x14]
mov byte [esp + 0x17c], 5
call fcn.005581a0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x17c], 4
call fcn.005581a0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x17c], 3
call fcn.005581a0
lea ecx, [esp + 0x24]
mov byte [esp + 0x17c], 2
call fcn.005581a0
lea ecx, [esp + 0x34]
mov byte [esp + 0x17c], 1
call fcn.005581a0
lea ecx, [esp + 0x50]
mov byte [esp + 0x17c], 0
call fcn.00559d60
lea ecx, [esp + 0x40]
mov dword [esp + 0x17c], 0xffffffff
call fcn.00558a00
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