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

Disassembly:
push 0xffffffffffffffff
push 0x416621
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x384
mov al, byte [esp + 7]
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov esi, ecx
push ebp
push ebp
lea ecx, [esp + 0x20]
mov dword [esp + 0x58], esi
mov byte [esp + 0x20], al
call fcn.004049c0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebp
mov edx, dword [esp + 0x3a4]
lea ecx, [esp + 0x18]
push ecx
push 0x41a6e4
push edx
mov ecx, esi
mov dword [esp + 0x3a8], ebp
call fcn.00402c90
test eax, eax
jg 0x404012
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x39c], 0xffffffff
push eax
mov ecx, dword [eax]
lea eax, [esp + 0x58]
push ecx
jmp 0x4046bd
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x48], ebp
mov edi, dword [eax]
cmp edi, eax
mov dword [esp + 0x4c], edi
je 0x404612
mov ebx, dword [esp + 0x3a8]
jmp 0x404035
mov esi, dword [esp + 0x50]
mov dl, byte [esp + 0x17]
push ebp
push ebp
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2c], dl
call fcn.004049c0
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ebp
mov ecx, dword [edi + 8]
lea eax, [esp + 0x24]
push eax
push 0x41a750
push ecx
mov ecx, esi
mov byte [esp + 0x3a8], 1
call fcn.00402c90
test eax, eax
je 0x404673
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], ebp
mov esi, dword [eax]
cmp esi, eax
mov dword [esp + 0x34], esi
je 0x4045d1
mov dl, byte [esp + 0x17]
push ebp
push ebp
lea ecx, [esp + 0x44]
mov byte [esp + 0x44], dl
call fcn.004049c0
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ebp
mov ecx, dword [esi + 8]
lea eax, [esp + 0x3c]
push eax
push 0x41a6c4
push ecx
mov ecx, dword [esp + 0x5c]
mov byte [esp + 0x3a8], 2
call fcn.00402c90
cmp eax, 2
je 0x404102
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x78]
push eax
mov byte [esp + 0x3a0], 1
mov ecx, dword [eax]
push ecx
push edx
lea ecx, [esp + 0x48]
call fcn.00405890
mov eax, dword [esp + 0x40]
push eax
call fcn.0040839e
add esp, 4
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
jmp 0x40453c
mov ecx, dword [esp + 0x40]
mov esi, str.filepath
mov edx, dword [ecx]
mov edi, dword [edx + 8]
mov eax, edi
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x404136
test cl, cl
je 0x404132
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x404136
add eax, 2
add esi, 2
test cl, cl
jne 0x404112
xor eax, eax
jmp 0x40413b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
jne 0x40416d
mov eax, dword [edx]
or ecx, 0xffffffff
lea edx, [esp + 0x194]
mov edi, dword [eax + 8]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4044d8
mov esi, str.filename
mov eax, edi
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x404198
test cl, cl
je 0x404194
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x404198
add eax, 2
add esi, 2
test cl, cl
jne 0x404174
xor eax, eax
jmp 0x40419d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
jne 0x4041cf
mov eax, dword [edx]
or ecx, 0xffffffff
lea edx, [esp + 0x81]
mov edi, dword [eax + 8]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4044d8
mov esi, str.filesize
mov eax, edi
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x4041fa
test cl, cl
je 0x4041f6
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x4041fa
add eax, 2
add esi, 2
test cl, cl
jne 0x4041d6
xor eax, eax
jmp 0x4041ff
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
jne 0x404395
mov eax, dword [edx]
mov ebx, dword [eax + 8]
mov dword [esp + 0x38], ebx
cmp byte [ebx], 0x30
jne 0x4042fa
cmp byte [ebx + 1], 0x78
jne 0x4042fa
xor ecx, ecx
lea esi, [ebx + 2]
mov dword [esp + 0x6c], ecx
mov edi, esi
mov dword [esp + 0x70], ecx
xor eax, eax
mov word [esp + 0x74], cx
or ecx, 0xffffffff
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
mov dword [esp + 0x58], edx
dec ecx
mov dword [esp + 0x5c], edx
cmp ecx, 8
mov word [esp + 0x60], dx
mov edi, esi
jbe 0x40428f
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffff7
lea eax, [esp + 0x6c]
push ecx
push esi
push eax
call fcn.004092e0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x68]
lea ecx, [ecx + ebx - 6]
push ecx
push edx
call fcn.004092e0
add esp, 0x18
jmp 0x4042a8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x58]
push ecx
push esi
push eax
call fcn.004092e0
add esp, 0xc
push 0x10
lea ecx, [esp + 0x70]
push ebp
push ecx
call fcn.00408bca
add esp, 0xc
push 1
push ebp
push ebp
push eax
call fcn.00409400
mov edi, edx
push 0x10
lea edx, [esp + 0x5c]
push ebp
push edx
mov esi, eax
call fcn.00408bca
add esp, 0xc
xor ecx, ecx
add esi, eax
mov eax, dword [esp + 0x10]
adc edi, ecx
inc eax
mov dword [esp + 0x184], esi
mov dword [esp + 0x188], edi
mov dword [esp + 0x10], eax
xor ebp, ebp
jmp 0x4044dc
mov edi, dword [esp + 0x38]
push edi
call fcn.00415360
mov dword [esp + 0x68], eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
xor ebx, ebx
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x184], ebx
mov dword [esp + 0x188], ebx
mov esi, 1
je 0x404385
mov edx, dword [esp + 0x64]
push ebp
push esi
movsx eax, byte [ebx + edx]
sub eax, 0x30
cdq
push edx
push eax
call fcn.00409400
mov edi, dword [esp + 0x184]
mov ecx, dword [esp + 0x188]
add edi, eax
push 0
push 0xa
push ebp
adc ecx, edx
push esi
mov dword [esp + 0x194], edi
mov dword [esp + 0x198], ecx
call fcn.00409400
mov edi, dword [esp + 0x38]
mov esi, eax
or ecx, 0xffffffff
xor eax, eax
inc ebx
mov ebp, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ebx, ecx
jb 0x40432e
mov eax, dword [esp + 0x10]
inc eax
xor ebp, ebp
mov dword [esp + 0x10], eax
jmp 0x4044dc
mov esi, str.filetype
mov eax, edi
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x4043c0
test cl, cl
je 0x4043bc
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x4043c0
add eax, 2
add esi, 2
test cl, cl
jne 0x40439c
xor eax, eax
jmp 0x4043c5
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
jne 0x404440
mov eax, dword [edx]
xor ebp, ebp
mov dword [esp + 0x190], ebp
mov edi, 0x41a5dc
mov edx, dword [eax + 8]
mov esi, dword [edi]
mov eax, edx
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x404404
test cl, cl
je 0x404400
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x404404
add eax, 2
add esi, 2
test cl, cl
jne 0x4043e0
xor eax, eax
jmp 0x404409
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x404429
add edi, 4
inc ebp
cmp edi, str.game
jl 0x4043dc
mov eax, dword [esp + 0x10]
inc eax
xor ebp, ebp
mov dword [esp + 0x10], eax
jmp 0x4044dc
mov eax, dword [esp + 0x10]
mov dword [esp + 0x190], ebp
inc eax
xor ebp, ebp
mov dword [esp + 0x10], eax
jmp 0x4044dc
mov esi, str.filenum
mov eax, edi
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x40446b
test cl, cl
je 0x404467
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x40446b
add eax, 2
add esi, 2
test cl, cl
jne 0x404447
xor eax, eax
jmp 0x404470
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
jne 0x40448d
mov eax, dword [edx]
push ebp
push ebp
mov eax, dword [eax + 8]
push eax
call fcn.00408bca
add esp, 0xc
mov dword [esp + 0x180], eax
jmp 0x4044d8
mov esi, str.filetotal
mov eax, edi
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x4044b8
test cl, cl
je 0x4044b4
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x4044b8
add eax, 2
add esi, 2
test cl, cl
jne 0x404494
xor eax, eax
jmp 0x4044bd
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
jne 0x4044dc
mov eax, dword [edx]
push ebp
push ebp
mov ecx, dword [eax + 8]
push ecx
call fcn.00408bca
add esp, 0xc
mov dword [esp + 0x18c], eax
inc dword [esp + 0x10]
mov esi, dword [esp + 0x40]
mov byte [esp + 0x39c], 1
mov eax, dword [esi]
cmp eax, esi
mov dword [esp + 0x38], eax
je 0x404518
lea edx, [esp + 0x7c]
push ebp
push edx
lea ecx, [esp + 0x40]
call fcn.004049b0
mov eax, dword [eax]
lea ecx, [esp + 0x68]
push eax
push ecx
lea ecx, [esp + 0x44]
call fcn.004049f0
cmp dword [esp + 0x38], esi
jne 0x4044f2
mov edx, dword [esp + 0x40]
push edx
call fcn.0040839e
mov ebx, dword [esp + 0x3ac]
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x50]
add esp, 4
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov esi, dword [esi]
mov eax, dword [esp + 0x28]
cmp esi, eax
mov dword [esp + 0x34], esi
jne 0x40408b
cmp dword [esp + 0x10], 5
jl 0x4045d1
push 0x314
call fcn.0040817b
add esp, 4
cmp eax, ebp
mov dword [esp + 0x54], eax
je 0x4046ce
mov ecx, dword [esp + 0x20]
lea esi, [esp + 0x80]
mov dword [esp + 0x18c], ecx
mov ecx, 0xc5
mov edi, eax
mov byte [esp + 0x80], 0x3a
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebx + 4]
mov ecx, ebx
mov edx, dword [esi + 4]
push edx
push esi
call fcn.004049c0
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
lea ecx, [esp + 0x54]
add eax, 8
push ecx
push eax
call fcn.00404a30
mov ecx, dword [ebx + 8]
mov eax, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
add esp, 8
inc ecx
inc eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x28]
mov dword [ebx + 8], ecx
mov ecx, dword [eax]
push eax
lea edx, [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x30]
mov byte [esp + 0x3a8], 0
call fcn.00405890
mov eax, dword [esp + 0x28]
push eax
call fcn.0040839e
mov edi, dword [edi]
mov eax, dword [esp + 0x20]
add esp, 4
cmp edi, eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x4c], edi
jne 0x404031
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x20]
cmp ecx, edx
mov dword [esp + 0x39c], 0xffffffff
jne 0x404729
mov esi, eax
mov ecx, dword [esi]
cmp ecx, esi
mov dword [esp + 0x34], ecx
je 0x404663
lea edx, [esp + 0x30]
push ebp
push edx
lea ecx, [esp + 0x3c]
call fcn.004049b0
mov eax, dword [eax]
lea ecx, [esp + 0x68]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.004049f0
cmp dword [esp + 0x34], esi
jne 0x404639
mov eax, dword [esp + 0x1c]
push eax
call fcn.0040839e
add esp, 4
mov al, 1
jmp 0x40474a
mov eax, dword [esp + 0x28]
mov byte [esp + 0x39c], 0
push eax
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x30]
call fcn.00405890
mov edx, dword [esp + 0x28]
push edx
call fcn.0040839e
mov eax, dword [esp + 0x20]
add esp, 4
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov ecx, dword [eax]
push eax
mov dword [esp + 0x3a0], 0xffffffff
push ecx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x24]
call fcn.00405890
mov ecx, dword [esp + 0x1c]
push ecx
jmp 0x404740
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x30]
push eax
mov byte [esp + 0x3a0], 0
mov ecx, dword [eax]
push ecx
push edx
lea ecx, [esp + 0x30]
call fcn.00405890
mov eax, dword [esp + 0x28]
push eax
call fcn.0040839e
mov eax, dword [esp + 0x20]
add esp, 4
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov ecx, dword [eax]
push eax
push ecx
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x3a8], 0xffffffff
call fcn.00405890
mov edx, dword [esp + 0x1c]
push edx
jmp 0x404740
mov ecx, dword [eax]
push eax
lea edx, [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x24]
call fcn.00405890
mov eax, dword [esp + 0x1c]
push eax
call fcn.0040839e
add esp, 4
xor al, al
mov ecx, dword [esp + 0x394]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x390
ret 8