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

Disassembly:
push 0xffffffffffffffff
push 0x41e640
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x426304]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x426304]
xor eax, esp
push eax
lea eax, [esp + 0x9c]
mov dword fs:[0], eax
mov eax, dword [esp + 0xac]
mov ebp, dword [esp + 0xb4]
mov ebx, dword [esp + 0xc4]
movzx edx, dx
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0xbc]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x38], edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xc0]
lea edx, [esp + 0x58]
push edx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x18], eax
call fcn.00402db0
xor esi, esi
mov dword [esp + 0xa4], esi
mov edi, eax
call fcn.00405dc0
mov edi, eax
mov dword [esp + 0x48], edi
mov dword [esp + 0xa4], 0xffffffff
mov eax, dword [esp + 0x58]
cmp eax, esi
je 0x4042cf
push esi
lea ecx, [esp + 0x30]
mov dword [esp + 0x2c], eax
call fcn.00418a2d
mov dword [esp + 0xa4], 1
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + 4]
cmp eax, esi
jbe 0x4042a0
cmp eax, 0xffffffff
jae 0x4042a0
dec eax
mov dword [ecx + 4], eax
mov esi, dword [ecx + 4]
neg esi
sbb esi, esi
not esi
mov dword [esp + 0xa4], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.00418a55
and esi, dword [esp + 0x28]
je 0x4042cd
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
xor esi, esi
lea eax, [esp + 0x78]
push eax
mov ecx, edi
call fcn.00405230
mov dword [esp + 0xa4], 2
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov ecx, edi
call eax
movzx ecx, ax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], esi
mov byte [esp + 0x5c], 0
mov byte [esp + 0xa4], 3
mov edx, dword [esp + 0x24]
add edx, 8
push edx
lea eax, [esp + 0x30]
push eax
push 1
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x44]
push edx
mov byte [esp + 0x30], 0x30
mov dword [esp + 0x48], esi
mov dword [esp + 0x40], esi
call fcn.00418c6f
mov al, byte [ebp]
add esp, 0x14
cmp al, 0x2b
je 0x40434c
mov dword [esp + 0x2c], esi
cmp al, 0x2d
jne 0x404354
mov dword [esp + 0x2c], 1
call fcn.0040708d
mov eax, dword [eax]
mov cl, byte [eax]
push ebx
push 0x65
push ebp
mov byte [esp + 0x2c], cl
mov word [esp + 0x2d], 0x65
call fcn.00406fe0
movsx edx, byte [esp + 0x2c]
add esp, 0xc
push ebx
push edx
push ebp
mov edi, eax
call fcn.00406fe0
mov esi, eax
add esp, 0xc
mov dword [esp + 0x3c], esi
test esi, esi
jne 0x404394
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x8c]
mov eax, dword [esp + 0x78]
mov ecx, eax
cmp edx, 0x10
jae 0x4043aa
lea ecx, [esp + 0x78]
cmp byte [ecx], 0x7f
je 0x4044e0
cmp edx, 0x10
jae 0x4043bc
lea eax, [esp + 0x78]
cmp byte [eax], 0
jle 0x4044e0
push ebx
mov eax, ebp
lea ecx, [esp + 0x60]
call fcn.00401cc0
test edi, edi
jne 0x4043e7
mov eax, dword [esp + 0x14]
push 0x30
push eax
lea ecx, [esp + 0x64]
call fcn.00401f70
jmp 0x404415
test esi, esi
jne 0x4043ff
mov ecx, dword [esp + 0x18]
push 0x30
push ecx
lea ecx, [esp + 0x64]
call fcn.00401f70
mov dword [esp + 0x18], esi
mov edx, dword [esp + 0x14]
push 0x30
push edx
sub edi, ebp
lea esi, [esp + 0x64]
call fcn.00404050
mov esi, dword [esp + 0x3c]
push 0x30
test esi, esi
jne 0x40442b
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x64]
call fcn.00401f70
jmp 0x404456
mov ecx, dword [esp + 0x3c]
mov ebx, esi
sub ebx, ebp
push ecx
lea edi, [ebx + 1]
lea esi, [esp + 0x64]
call fcn.00404050
mov edx, dword [esp + 0x18]
push 0x30
push edx
mov edi, ebx
call fcn.00404050
mov dword [esp + 0x38], 0
mov ebx, dword [esp + 0x78]
mov eax, 0x10
mov dword [esp + 0x18], 0
cmp dword [esp + 0x8c], eax
jae 0x404474
lea ebx, [esp + 0x78]
cmp dword [esp + 0x70], eax
mov eax, dword [esp + 0x5c]
jae 0x404482
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x20]
push ecx
push eax
call fcn.004070c0
mov edi, eax
mov al, byte [ebx]
add esp, 8
cmp al, 0x7f
je 0x4044c5
test al, al
jle 0x4044c5
mov edx, edi
sub edx, dword [esp + 0x2c]
movsx eax, al
cmp eax, edx
jae 0x4044c5
push 0
sub edi, eax
push 1
lea esi, [esp + 0x64]
call fcn.00404050
cmp byte [ebx + 1], 0
jle 0x4044bf
inc ebx
mov al, byte [ebx]
cmp al, 0x7f
jne 0x404498
cmp dword [esp + 0x70], 0x10
mov ebp, dword [esp + 0x5c]
jae 0x4044d4
lea ebp, [esp + 0x5c]
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x50]
mov edx, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
add eax, ebx
add eax, dword [esp + 0x38]
add eax, dword [esp + 0x18]
test edx, edx
jl 0x404518
jg 0x404502
test ecx, ecx
je 0x404518
mov dword [esp + 0x40], edx
cmp ecx, eax
jbe 0x404518
sub ecx, eax
mov edi, ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x3c], edi
jmp 0x404524
mov dword [esp + 0x3c], 0
mov edi, dword [esp + 0x3c]
mov esi, dword [esi + 0x14]
and esi, 0x1c0
cmp esi, 0x40
je 0x4045d5
cmp esi, 0x100
je 0x404555
mov ecx, dword [esp + 0xcc]
mov edx, dword [esp + 0xc8]
push ecx
push edx
lea eax, [esp + 0x34]
push eax
jmp 0x4045ac
cmp dword [esp + 0x2c], 0
jbe 0x404597
mov eax, dword [esp + 0xcc]
mov ecx, dword [esp + 0xc8]
push 1
push eax
mov eax, dword [esp + 0x2c]
push ecx
lea edx, [esp + 0x38]
push edx
push eax
mov eax, ebp
call fcn.00405070
mov ecx, dword [eax]
mov dword [esp + 0xdc], ecx
mov edx, dword [eax + 4]
add esp, 0x14
inc ebp
mov dword [esp + 0xcc], edx
dec ebx
mov eax, dword [esp + 0xcc]
mov ecx, dword [esp + 0xc8]
push eax
push ecx
lea edx, [esp + 0x34]
push edx
mov esi, dword [esp + 0x60]
mov eax, edi
call fcn.00404cf0
mov ecx, dword [eax]
mov dword [esp + 0xd4], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x48], 0
mov dword [esp + 0xd8], edx
add esp, 0xc
movsx eax, byte [esp + 0x20]
push ebx
push eax
push ebp
call fcn.00406fe0
add esp, 0xc
test eax, eax
je 0x4046d6
mov ecx, dword [esp + 0xcc]
mov edx, dword [esp + 0xc8]
push ecx
sub eax, ebp
push edx
mov edx, dword [esp + 0x2c]
lea edi, [eax + 1]
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x38]
push ecx
lea eax, [edi - 1]
push edx
mov ecx, ebp
call fcn.00405150
mov ecx, dword [eax]
mov esi, dword [esp + 0x48]
mov dword [esp + 0xdc], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0xe0], edx
mov ecx, dword [eax + 4]
mov edx, dword [eax]
add esp, 0x14
push ecx
push edx
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x24]
call fcn.00404cf0
mov ecx, dword [eax]
mov dword [esp + 0xd4], ecx
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0xd8], edx
mov eax, dword [ecx]
mov edx, dword [eax + 4]
add esp, 0xc
call edx
mov ecx, dword [esp + 0xc8]
movzx esi, ax
mov eax, dword [esp + 0xcc]
push eax
push ecx
lea edx, [esp + 0x50]
push edx
mov eax, 1
call fcn.00404cf0
mov ecx, dword [eax]
mov esi, dword [esp + 0x40]
mov dword [esp + 0xd4], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0xd8], edx
mov ecx, dword [eax + 4]
mov edx, dword [eax]
add esp, 0xc
push ecx
push edx
lea eax, [esp + 0x50]
push eax
mov eax, dword [esp + 0x44]
call fcn.00404cf0
mov ecx, dword [eax]
mov dword [esp + 0xd4], ecx
mov edx, dword [eax + 4]
add esp, 0xc
add ebp, edi
mov dword [esp + 0xcc], edx
sub ebx, edi
push ebx
push 0x65
push ebp
call fcn.00406fe0
add esp, 0xc
test eax, eax
je 0x4047ad
mov ecx, dword [esp + 0xc8]
mov edx, dword [esp + 0x28]
sub eax, ebp
lea edi, [eax + 1]
mov eax, dword [esp + 0xcc]
push eax
push ecx
push edx
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x54]
push ecx
lea eax, [edi - 1]
push edx
mov ecx, ebp
call fcn.00405150
mov ecx, dword [eax]
mov esi, dword [esp + 0x48]
mov dword [esp + 0xdc], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0xe0], edx
mov ecx, dword [eax + 4]
mov edx, dword [eax]
add esp, 0x14
push ecx
push edx
lea eax, [esp + 0x50]
push eax
mov eax, dword [esp + 0x20]
call fcn.00404cf0
mov ecx, dword [eax]
mov dword [esp + 0xd4], ecx
mov ecx, dword [esp + 0x5c]
mov edx, dword [eax + 4]
add esp, 0xc
test byte [ecx + 0x14], 4
mov dword [esp + 0xcc], edx
mov dword [esp + 0x14], 0
mov ecx, 0x422ed8
jne 0x404779
mov ecx, 0x422edc
mov edx, dword [eax + 4]
mov eax, dword [eax]
push 1
push edx
push eax
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x54]
push edx
push eax
mov eax, ecx
call fcn.00405070
mov ecx, dword [eax]
mov dword [esp + 0xdc], ecx
mov edx, dword [eax + 4]
add esp, 0x14
add ebp, edi
mov dword [esp + 0xcc], edx
sub ebx, edi
mov eax, dword [esp + 0xcc]
mov ecx, dword [esp + 0xc8]
mov edx, dword [esp + 0x28]
push eax
push ecx
mov ecx, dword [esp + 0x2c]
push edx
lea eax, [esp + 0x54]
push eax
push ecx
mov eax, ebx
mov ecx, ebp
call fcn.00405150
mov edx, dword [eax]
mov esi, dword [esp + 0x48]
mov dword [esp + 0xdc], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0xe0], ecx
mov edx, dword [eax + 4]
mov eax, dword [eax]
add esp, 0x14
push edx
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x50]
push ecx
call fcn.00404cf0
mov ecx, dword [eax]
mov edx, dword [esp + 0x5c]
mov ebx, dword [esp + 0xbc]
mov esi, dword [esp + 0x60]
add esp, 0xc
mov dword [esp + 0xc8], ecx
mov eax, dword [eax + 4]
push eax
push ecx
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0x44]
xor edi, edi
push ebx
mov dword [edx + 0x20], edi
mov dword [edx + 0x24], edi
call fcn.00404cf0
add esp, 0xc
mov byte [esp + 0xa4], 2
mov esi, 0x10
cmp dword [esp + 0x70], esi
jb 0x404860
mov edx, dword [esp + 0x5c]
push edx
call fcn.00406e29
add esp, 4
mov ebp, 0xf
mov dword [esp + 0x70], ebp
mov dword [esp + 0x6c], edi
mov byte [esp + 0x5c], 0
mov dword [esp + 0xa4], 0xffffffff
cmp dword [esp + 0x8c], esi
jb 0x404893
mov eax, dword [esp + 0x78]
push eax
call fcn.00406e29
add esp, 4
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x88], edi
mov byte [esp + 0x78], 0
mov eax, ebx
mov ecx, dword [esp + 0x9c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.004063c1
add esp, 0x94
ret