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

Disassembly:
push 0xffffffffffffffff
push 0x418448
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0x10], ebp
mov al, byte [esp + 0x7c]
xor esi, esi
push esi
lea ecx, [esp + 0x30]
mov dword [esp + 0x68], esi
mov byte [esp + 0x30], al
call fcn.00408720
mov edi, 0x41f420
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x41f420
lea ecx, [esp + 0x34]
call fcn.00408a80
mov eax, dword [esp + 0x70]
mov byte [esp + 0x64], 1
cmp eax, esi
jne 0x40486a
mov eax, 0x419160
push 0x5c
push eax
call fcn.0040e470
add esp, 8
cmp eax, esi
je 0x404d34
mov cl, byte [esp + 0x7c]
push esi
mov byte [esp + 0x40], cl
lea ecx, [esp + 0x40]
lea ebx, [eax + 1]
call fcn.00408720
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebx
lea ecx, [esp + 0x44]
call fcn.00408a80
mov edx, dword [0x419158]
lea eax, [esp + 0x3c]
push edx
push esi
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x70], 2
call fcn.00408200
push 1
lea ecx, [esp + 0x40]
mov byte [esp + 0x68], 1
call fcn.00408720
mov eax, dword [esp + 0x70]
cmp eax, esi
jne 0x4048e1
mov eax, 0x419160
push 0x41c304
push eax
call fcn.0040e457
mov ebx, eax
add esp, 8
cmp ebx, esi
je 0x404c13
push 2
push esi
push ebx
call fcn.0040e3ab
lea ecx, [esp + 0x28]
push ecx
push ebx
call fcn.0040e389
push esi
push esi
push ebx
call fcn.0040e3ab
lea edx, [esp + 0x4c]
lea eax, [esp + 0x6c]
push edx
push 0x41c2f8
push eax
call fcn.00409780
push 0x41c2e8
lea ecx, [esp + 0x6c]
push eax
push ecx
mov byte [esp + 0x9c], 4
call fcn.00409650
add esp, 0x38
mov edx, dword [0x419158]
lea ecx, [esp + 0x2c]
push edx
push esi
push eax
mov byte [esp + 0x70], 5
call fcn.00408200
push 1
lea ecx, [esp + 0x40]
mov byte [esp + 0x68], 4
call fcn.00408720
push 1
lea ecx, [esp + 0x50]
mov byte [esp + 0x68], 1
call fcn.00408720
push 0x31128
call fcn.0040e005
mov ebp, eax
add esp, 4
cmp ebp, esi
je 0x404b36
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
cmp eax, esi
jl 0x404a57
jg 0x4049b0
cmp ecx, 0x30d40
jbe 0x404a57
push esi
push 0x30d40
push eax
push ecx
call fcn.0040e4a0
inc eax
mov dword [esp + 0x14], esi
cmp eax, esi
mov dword [esp + 0x18], eax
jle 0x404aaf
jmp 0x4049d2
xor esi, esi
mov ecx, 0xc44a
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x30]
cmp eax, esi
mov esi, 0x419160
je 0x4049ec
mov esi, eax
mov ecx, dword [esp + 0x34]
mov edi, ebp
mov eax, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x30d40
and ecx, 3
push 1
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x40]
add ecx, ebp
push ecx
call fcn.0040e2a1
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x8c]
add esp, 0x10
cmp esi, ecx
jl 0x404a3b
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
add edx, eax
push edx
push ebp
call fcn.004057d0
test al, al
je 0x404a4a
mov eax, dword [esp + 0x18]
inc esi
cmp esi, eax
mov dword [esp + 0x14], esi
jl 0x4049d0
jmp 0x404aad
push ebp
call fcn.0040d580
add esp, 4
xor ebp, ebp
jmp 0x404aad
mov ecx, 0xc44a
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x30]
cmp eax, esi
mov esi, 0x419160
je 0x404a71
mov esi, eax
mov ecx, dword [esp + 0x34]
mov edi, ebp
mov eax, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x30d40
and ecx, 3
push 1
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x40]
add ecx, ebp
push ecx
call fcn.0040e2a1
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x20]
add esp, 0x10
add edx, eax
push edx
push ebp
call fcn.004057d0
xor esi, esi
lea eax, [esp + 0x6c]
push 0x41c2d4
lea ecx, [esp + 0x40]
push eax
push ecx
call fcn.00409650
mov dl, byte [esp + 0x48]
push ecx
mov edi, esp
mov dword [esp + 0x8c], esp
push esi
mov ecx, edi
mov byte [esp + 0x78], 6
mov byte [edi], dl
call fcn.00408720
mov eax, dword [0x419158]
lea ecx, [esp + 0x4c]
push eax
push esi
push ecx
mov ecx, edi
call fcn.00408200
mov ecx, dword [esp + 0x20]
call fcn.004054d0
push 1
lea ecx, [esp + 0x40]
mov byte [esp + 0x68], 1
call fcn.00408720
cmp ebp, esi
je 0x404b19
push ebp
call fcn.0040d580
add esp, 4
push ebx
call fcn.0040e24b
add esp, 4
jmp 0x404cdb
dec ecx
push ecx
call fcn.0040d580
add esp, 4
jmp 0x404dd0
mov dl, byte [esp + 0x7c]
push esi
lea ecx, [esp + 0x40]
mov byte [esp + 0x40], dl
call fcn.00408720
mov edi, 0x41c2b8
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x40]
push ebx
call fcn.00408530
test al, al
je 0x404b8e
mov edi, dword [esp + 0x40]
mov ecx, ebx
mov eax, ecx
mov esi, 0x41c2b8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x40]
call fcn.00408490
xor esi, esi
mov cl, byte [esp + 0x3c]
sub esp, 0x10
mov edi, esp
mov dword [esp + 0x8c], esp
push esi
mov byte [esp + 0x78], 7
mov byte [edi], cl
mov ecx, edi
call fcn.00408720
mov edx, dword [0x419158]
lea eax, [esp + 0x4c]
push edx
push esi
push eax
mov ecx, edi
call fcn.00408200
mov ecx, dword [esp + 0x20]
call fcn.004054d0
push 1
lea ecx, [esp + 0x40]
mov byte [esp + 0x68], 1
call fcn.00408720
push 1
lea ecx, [esp + 0x30]
mov byte [esp + 0x68], 0
call fcn.00408720
mov ecx, dword [esp + 0x70]
cmp ecx, esi
je 0x404dd0
mov al, byte [ecx - 1]
test al, al
je 0x404b27
cmp al, 0xff
je 0x404b27
dec al
mov byte [ecx - 1], al
jmp 0x404dd0
mov cl, byte [esp + 0x7c]
push esi
mov byte [esp + 0x20], cl
lea ecx, [esp + 0x20]
call fcn.00408720
mov edi, 0x41c2ac
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x20]
push ebx
call fcn.00408530
test al, al
je 0x404c71
mov edi, dword [esp + 0x20]
mov ecx, ebx
mov edx, ecx
mov esi, 0x41c2ac
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov ebp, dword [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x24], ebx
xor esi, esi
mov byte [eax + ebx], 0
mov cl, byte [esp + 0x1c]
sub esp, 0x10
mov edi, esp
mov dword [esp + 0x8c], esp
push esi
mov byte [esp + 0x78], 8
mov byte [edi], cl
mov ecx, edi
call fcn.00408720
mov edx, dword [0x419158]
lea eax, [esp + 0x2c]
push edx
push esi
push eax
mov ecx, edi
call fcn.00408200
mov ecx, ebp
call fcn.004054d0
mov ecx, dword [esp + 0x20]
cmp ecx, esi
je 0x404ccf
mov al, byte [ecx - 1]
test al, al
je 0x404cc5
cmp al, 0xff
je 0x404cc5
dec al
mov byte [ecx - 1], al
jmp 0x404ccf
dec ecx
push ecx
call fcn.0040d580
add esp, 4
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov ecx, dword [esp + 0x30]
cmp ecx, esi
je 0x404cff
mov al, byte [ecx - 1]
test al, al
je 0x404cf5
cmp al, 0xff
je 0x404cf5
dec al
mov byte [ecx - 1], al
jmp 0x404cff
dec ecx
push ecx
call fcn.0040d580
add esp, 4
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x30], esi
cmp ecx, esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
je 0x404dd0
mov al, byte [ecx - 1]
test al, al
je 0x404b27
cmp al, 0xff
je 0x404b27
dec al
mov byte [ecx - 1], al
jmp 0x404dd0
mov cl, byte [esp + 0x7c]
push esi
mov byte [esp + 0x40], cl
lea ecx, [esp + 0x40]
call fcn.00408720
mov edi, 0x41c2ac
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x41c2ac
lea ecx, [esp + 0x44]
call fcn.00408a80
mov dl, byte [esp + 0x3c]
sub esp, 0x10
mov edi, esp
mov dword [esp + 0x8c], esp
push esi
mov ecx, edi
mov byte [esp + 0x78], 3
mov byte [edi], dl
call fcn.00408720
mov eax, dword [0x419158]
lea ecx, [esp + 0x4c]
push eax
push esi
push ecx
mov ecx, edi
call fcn.00408200
mov ecx, ebp
call fcn.004054d0
push 1
lea ecx, [esp + 0x40]
mov byte [esp + 0x68], 1
call fcn.00408720
push 1
lea ecx, [esp + 0x30]
mov byte [esp + 0x68], 0
call fcn.00408720
push 1
lea ecx, [esp + 0x70]
mov dword [esp + 0x68], 0xffffffff
call fcn.00408720
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x58
ret 0x14