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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd4
push ebx
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebx + 4]
push esi
push edi
mov edi, eax
mov eax, dword [edi]
mov edx, dword [ecx + eax*4]
mov eax, dword [edx]
mov esi, dword [eax]
push esi
call fcn.00411ed5
add esp, 4
mov dword [esp + 0x34], eax
add eax, 1
je 0x42dac9
add eax, 7
shr eax, 3
add eax, eax
add eax, eax
add eax, eax
xor ecx, ecx
mov dword [esp + 0x38], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041231a
mov ecx, dword [esp + 0x38]
add esp, 4
lea edx, [ecx + ecx + 2]
push edx
push esi
push eax
mov dword [esp + 0x3c], eax
call fcn.00411b70
add esp, 0xc
push 4
call fcn.0041231a
add esp, 4
test eax, eax
je 0x42dad3
mov dword [eax], 1
mov esi, dword [ebp + 8]
cmp dword [esi + 0x140], 0
mov dword [esp + 0x3c], eax
je 0x42dbb5
cmp dword [eax], 1
jg 0x42dada
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push eax
push ecx
call dword [0x482640]
mov eax, dword [esi + 0x13c]
test eax, eax
jne 0x42db44
mov edx, dword [ebp + 8]
mov esi, dword [edx + 0x134]
test esi, esi
je 0x42dbb5
mov dword [esp + 0x1c], esi
mov edi, edi
mov edx, dword [esi + 4]
cmp edx, dword [esp + 0x34]
jne 0x40b647
test edx, edx
jbe 0x40a75b
mov ecx, dword [esp + 0x30]
mov eax, dword [esi]
jmp 0x40a740
mov si, word [eax]
cmp si, word [ecx]
jne 0x40b643
add eax, 2
add ecx, 2
sub edx, 1
jne 0x40a740
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x3c]
add dword [eax], 0xffffffff
jne 0x40a77e
mov eax, dword [esp + 0x30]
push eax
call fcn.00411eef
mov ecx, dword [esp + 0x40]
add esp, 4
push ecx
call fcn.00411eef
add esp, 4
mov eax, esi
test eax, eax
je 0x42dbbe
mov edx, dword [eax + 0x14]
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x74], edx
mov edx, dword [eax + 0x10]
mov eax, dword [edi]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x7c], edx
mov edx, dword [ebx + 4]
mov ecx, dword [edx + eax*4]
movsx edx, word [ecx + 0xa]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x148]
inc eax
mov dword [edi], eax
mov esi, dword [ebx + 4]
mov dword [esp + 0xdc], ecx
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], ecx
mov esi, dword [esi + eax*4]
cmp word [esi + 8], 0x47
mov dword [esp + 0x30], 0x487630
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x64], str.FILESETPOS
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], ecx
jne 0x42db38
inc eax
mov dword [esp + 0x84], edx
mov edx, eax
mov dword [esp + 0x18], ecx
xor esi, esi
mov dword [esp + 0x58], edx
mov dword [edi], eax
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx + eax*4]
movsx ecx, word [ecx + 8]
cmp ecx, 0x47
jge 0x40a82f
inc eax
jmp 0x40a81b
sub ecx, 0x47
je 0x42dc1e
sub ecx, 1
jne 0x42dbf5
test esi, esi
jne 0x42dc17
mov dword [esp + 0x14], eax
inc eax
mov dword [edi], eax
mov eax, dword [esp + 0x7c]
cmp eax, dword [0x4a8e90]
jg 0x42dc24
cmp eax, ecx
jle 0x42dc24
shl eax, 4
add eax, dword [0x4a8ec4]
mov dword [esp + 0x60], eax
cmp dword [esp + 0x74], ecx
mov dword [esp + 0x5c], ecx
jle 0x40aa4a
mov dword [esp + 0x10], 3
mov dword [esp + 0x80], ecx
cmp edx, dword [esp + 0x14]
jae 0x40aa4a
mov ecx, dword [esp + 0x60]
mov eax, dword [ecx + 4]
mov ecx, dword [esp + 0x10]
inc dword [esp + 0x5c]
lea eax, [eax + ecx*4]
mov ecx, dword [eax]
xor edi, edi
xor bl, bl
cmp word [ecx + 8], di
je 0x42dc2d
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + edx*4]
cmp word [edx + 8], 0x33
je 0x40a8d0
xor bl, bl
mov esi, dword [esp + 0x6c]
mov eax, dword [esp + 0x70]
cmp esi, eax
je 0x40b65b
push 1
call fcn.0041231a
add esp, 4
test eax, eax
je 0x42dc65
mov byte [eax], bl
mov edx, dword [esp + 0x68]
mov dword [edx + esi*4], eax
inc esi
mov dword [esp + 0x6c], esi
test bl, bl
jne 0x42dc6c
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x42dd76
mov eax, dword [esp + 0x28]
cmp eax, 8
je 0x42dd89
cmp eax, 0xa
je 0x42ddae
cmp eax, 5
je 0x42ddc5
cmp eax, 0xb
je 0x42ddd3
cmp eax, 0xc
je 0x42ddf5
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x28], 1
mov dword [esp + 0x20], 0
cmp esi, eax
je 0x40b6b8
mov edi, dword [esp + 0x34]
push 0x10
call fcn.0041231a
add esp, 4
test eax, eax
je 0x42dfdb
mov ebx, eax
mov eax, dword [esp + 0x28]
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], 0
cmp eax, 1
jne 0x42de0c
mov edx, dword [esp + 0x20]
mov dword [ebx], edx
mov eax, ebx
mov ebx, dword [esp + 0x14]
mov ecx, dword [ebp + 0xc]
mov dword [edi + esi*4], eax
inc esi
push ebx
mov dword [esp + 0x3c], esi
mov esi, dword [edi + esi*4 - 4]
push esi
lea eax, [esp + 0x60]
push eax
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040b750
test eax, eax
jne 0x42f1d7
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x60]
mov ecx, dword [edx + 4]
mov edx, dword [ecx + eax*4 + 4]
inc eax
cmp word [edx + 8], 0x41
mov dword [esp + 0x10], eax
je 0x42dfe2
mov edx, dword [esp + 0x58]
cmp edx, ebx
je 0x40aa4a
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 4]
mov eax, dword [eax + edx*4]
mov ecx, 0x40
cmp word [eax + 8], cx
jne 0x42e031
lea eax, [edx + 1]
cmp eax, dword [esp + 0x14]
je 0x42e031
mov esi, dword [esp + 0x10]
mov edx, eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x58], edx
mov eax, dword [eax + 4]
mov eax, dword [eax + esi*4]
cmp word [eax + 8], cx
jne 0x40aa31
inc dword [esp + 0x10]
mov eax, dword [esp + 0x80]
inc eax
cmp eax, dword [esp + 0x74]
mov dword [esp + 0x80], eax
jl 0x40a892
mov ebx, dword [esp + 0x5c]
cmp ebx, dword [esp + 0x44]
jl 0x42f1c4
cmp ebx, dword [esp + 0x74]
jg 0x42f1c4
cmp edx, dword [esp + 0x14]
jne 0x42f1c4
mov eax, dword [esp + 0x7c]
xor esi, esi
xor ecx, ecx
cmp eax, esi
mov dword [esp + 0x10], 3
mov dword [esp + 0x1c], esi
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], eax
jl 0x42e043
cmp byte [0x4a7ce5], 0
jne 0x42e04c
push 0xc
call fcn.0041231a
add esp, 4
cmp eax, esi
je 0x42e0ef
mov edi, eax
mov dword [edi], esi
mov edx, dword [esp + 0x50]
mov dword [edi + 4], edx
cmp dword [esp + 0x50], esi
jl 0x42e06d
mov eax, dword [esp + 0x4c]
cmp eax, esi
jne 0x42e075
mov dword [edi], esi
mov ecx, dword [0x4a7ce0]
mov dword [edi + 8], ecx
mov dword [0x4a7ce0], edi
mov eax, dword [esp + 0x4c]
mov edx, 1
add dword [0x4a7cdc], edx
cmp eax, esi
jne 0x42e0f6
cmp dword [esp + 0x74], edx
jl 0x40afab
mov dword [esp + 0x80], edx
lea esp, [esp]
mov esi, dword [esp + 0x1c]
mov esi, dword [esi + 0x20]
mov dword [esp + 0x1c], esi
test esi, esi
jne 0x40a720
jmp 0x42dbb5
add eax, eax
cmp eax, 4
jae 0x40b667
mov eax, 4
xor ecx, ecx
mov dword [esp + 0x70], eax
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041231a
mov edx, dword [esp + 0x6c]
add esp, 4
lea ecx, [esi*4]
push ecx
push edx
push eax
mov dword [esp + 0x58], eax
call fcn.00411b70
mov eax, dword [esp + 0x74]
add esp, 0xc
push eax
call fcn.00411eef
mov ecx, dword [esp + 0x50]
add esp, 4
mov dword [esp + 0x68], ecx
jmp 0x40a8e0
add eax, eax
cmp eax, 4
jae 0x40b6c4
mov eax, 4
xor ecx, ecx
mov dword [esp + 0x3c], eax
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041231a
mov ebx, dword [esp + 0x38]
mov edi, eax
add esp, 4
lea eax, [esi*4]
push eax
push ebx
push edi
call fcn.00411b70
add esp, 0xc
push ebx
call fcn.00411eef
add esp, 4
mov dword [esp + 0x34], edi
jmp 0x40a965
mov eax, 8
jmp 0x40a682
xor eax, eax
jmp 0x40a6ce
mov eax, dword [esp + 0x3c]
dec dword [eax]
lea esi, [esp + 0x30]
call fcn.00401fe0
mov eax, dword [esp + 0x34]
inc eax
push eax
call fcn.00447147
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
mov dword [esp + 0x38], esi
neg ecx
or ecx, eax
push ecx
call fcn.0041231a
mov edx, dword [esp + 0x34]
mov esi, eax
mov eax, dword [esp + 0x38]
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
push edx
push esi
call fcn.00411b70
mov dword [esp + 0x3c], esi
mov esi, dword [ebp + 8]
add esp, 0xc
jmp 0x40a6eb
push edx
mov edx, dword [ebp + 8]
push 0x6f
push edx
jmp 0x42f1d2
mov esi, dword [esi + 0x140]
sub esi, 1
js 0x42dbb5
mov dword [esp + 0x7c], eax
mov dword [esp + 0x74], 0
mov dword [esp + 0x5c], esi
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x7c]
add eax, edx
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [ecx + eax*4]
lea esi, [esp + 0x30]
mov dword [esp + 0x1c], eax
call fcn.0040ccb0
test eax, eax
jge 0x42db9c
mov edx, dword [esp + 0x1c]
dec edx
mov dword [esp + 0x5c], edx
jmp 0x42dbab
jle 0x42dbd2
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x74], eax
mov ecx, dword [esp + 0x5c]
cmp dword [esp + 0x74], ecx
jle 0x42db63
lea ecx, [esp + 0x30]
call fcn.00403220
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push eax
push edi
push ebx
push ecx
call fcn.0047dd0e
jmp 0x40b631
mov edx, dword [esp + 0x5c]
cmp dword [esp + 0x74], edx
jg 0x42dbb5
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x1c]
mov esi, dword [eax + ecx*4]
lea ecx, [esp + 0x30]
call fcn.00403220
jmp 0x40a77e
sub ecx, 0x37
jne 0x40a82c
mov edx, eax
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edx*4 - 4]
movsx edx, word [ecx + 0xa]
mov eax, dword [ebp + 8]
push edx
push 0x6f
push eax
jmp 0x42f1d2
dec esi
inc eax
jmp 0x40a81b
inc esi
jmp 0x40a82c
mov dword [esp + 0x60], ecx
jmp 0x40a875
mov ecx, dword [eax]
mov ecx, dword [ecx]
cmp ecx, 0x24
jne 0x42dc41
mov bl, 1
jmp 0x42dc4f
cmp ecx, 0x1e
jne 0x42dfec
mov edi, 0x100
mov ecx, dword [eax + 4]
inc dword [esp + 0x10]
add eax, 4
cmp word [ecx + 8], 0
je 0x42dc2d
jmp 0x40a8be
xor eax, eax
jmp 0x40a8f4
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x58]
mov eax, dword [edx + ecx*4]
cmp word [eax + 8], 0x33
jne 0x42dff8
mov esi, dword [eax]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
xor ecx, ecx
call fcn.0040cfe0
test al, al
je 0x42e014
test dword [esp + 0x18], 0x100
je 0x42dcd9
test edi, 0x100
jne 0x42dcd9
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x58]
mov ecx, dword [edx + eax*4]
movsx edx, word [ecx + 0xa]
mov eax, dword [ebp + 8]
push edx
push 0xb0
push eax
jmp 0x42f1d2
mov eax, dword [esp + 0x1c]
mov edi, 1
add dword [esp + 0x58], edi
add dword [esp + 0x10], edi
cmp dword [eax + 8], 5
jne 0x42dd4a
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x58]
mov edx, dword [edx + eax*4]
cmp word [edx + 8], 0x4e
jne 0x42dd4a
mov edx, dword [ebp + 8]
push 0
lea eax, [esp + 0x20]
push eax
push edx
lea eax, [esp + 0x64]
call fcn.0040d220
test eax, eax
je 0x42dd4a
lea esi, [esp + 0x20]
call fcn.00409ec0
lea ecx, [esp + 0x64]
call fcn.00434e22
lea ecx, [esp + 0x30]
call fcn.004116e0
mov eax, edi
jmp 0x40b631
lea esi, [esp + 0x20]
call fcn.00409ec0
mov eax, dword [esp + 0x1c]
push esi
lea esi, [esp + 0x34]
mov dword [esp + 0x2c], 6
mov dword [esp + 0x24], eax
call fcn.0040ca00
mov ebx, dword [esp + 0x14]
jmp 0x40a9e6
push eax
call fcn.004442f6
mov dword [esp + 0x2c], 0
jmp 0x40a914
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40a945
push eax
call dword [0x48242c]
mov edx, dword [esp + 0x20]
push edx
call fcn.00411eef
add esp, 4
jmp 0x40a945
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40a945
push eax
call fcn.0044538f
jmp 0x40a945
lea eax, [esp + 0x20]
call fcn.0040ef80
jmp 0x40a945
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 4]
push ecx
call fcn.00411eef
mov edx, dword [esp + 0x24]
add esp, 4
push edx
call fcn.00411eef
add esp, 4
jmp 0x40a945
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40a945
push eax
call fcn.0044bfb8
jmp 0x40a945
dec eax
cmp eax, 0xb
ja 0x42debf
jmp dword [eax*4 + 0x42e5fd]
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
jmp 0x40a99a
xor eax, eax
jmp 0x40a99c
add dword [esp + 0x10], 2
jmp 0x40a9e6
push 0xffffffffffffffff
push 0x91
jmp 0x42f1ce
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
mov ecx, dword [eax + ecx*4]
movsx edx, word [ecx + 0xa]
mov eax, dword [ebp + 8]
push edx
push 0x91
push eax
jmp 0x42f1d2
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x58]
mov ecx, dword [edx + eax*4]
movsx edx, word [ecx + 0xa]
mov eax, dword [ebp + 8]
push edx
push 0x79
push eax
jmp 0x42f1d2
mov ecx, dword [esi + 4]
mov edx, dword [ecx + edx*4]
movsx eax, word [edx + 0xa]
push eax
push 0x6f
jmp 0x42f1ce
mov dword [esp + 0x50], esi
jmp 0x40aa90
mov edx, dword [0x4a7ce0]
mov dword [edx], ecx
mov eax, dword [esp + 0x50]
mov ecx, dword [0x4a7ce0]
mov dword [ecx + 4], eax
mov byte [0x4a7ce5], 0
jmp 0x40aae1
mov dword [edi + 4], esi
jmp 0x40aac4
push 0x20
mov dword [esp + 0x1c], eax
call fcn.0041231a
add esp, 4
cmp eax, esi
je 0x42e096
push eax
call fcn.0044bff6
jmp 0x42e098
xor eax, eax
mov ecx, dword [esp + 0x18]
push ecx
mov esi, eax
mov dword [edi], eax
call fcn.0040eb50
mov edx, dword [edi]
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [edi]
mov edx, dword [esi + 0x14]
mov dword [ecx + 0x14], edx
mov ecx, dword [edi]
xor eax, eax
mov dword [ecx + 0x18], eax
mov edx, dword [edi]
mov dword [edx + 0x1c], eax
mov eax, dword [esi + 0x18]
mov ecx, dword [edi]
add ecx, 0x18
push eax
push ecx
mov ecx, edi
call fcn.00453cb3
mov edx, dword [esi + 0x1c]
mov eax, dword [edi]
push edx
add eax, 0x1c
push eax
mov ecx, edi
call fcn.00453cb3
xor esi, esi
jmp 0x40aad2
xor edi, edi
jmp 0x40aad2
mov edi, eax
mov eax, dword [eax + 0x18]
cmp eax, esi
je 0x42e112
push eax
lea ecx, [esp + 0x50]
call fcn.0040c400
mov edx, 1
mov eax, dword [edi + 0x1c]
cmp eax, esi
je 0x42e12c
push eax
lea ecx, [esp + 0x50]
call fcn.0040c400
mov edx, 1
cmp byte [edi + 0x10], 0
jne 0x42e147
mov ecx, dword [edi + 0x14]
cmp ecx, esi
je 0x42e147
push edx
call fcn.0040eee0
push edi
call fcn.004442f6
mov edx, 1
jmp 0x40aaf8
mov eax, dword [esp + 0x84]
push eax
push 0x70
mov ecx, dword [ebp + 8]
push ecx
call fcn.0045f22e