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

Disassembly:
push 0xffffffffffffffff
push 0x4681cd
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push ebp
push esi
push edi
mov eax, dword [0x480134]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
mov edi, ecx
xor esi, esi
mov dword [esp + 0x8c], esi
mov eax, dword [edi + 0xa4]
mov edx, dword [0x483248]
mov dword [esp + 0x38], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x483248
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x1c], esi
xor ebp, ebp
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x8c], 1
mov ecx, dword [edi + 0x4c]
call fcn.00413720
mov ecx, dword [edi + 0x14]
mov edx, dword [edi + 0x18]
mov ebx, dword [edi + 0xd0]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x58], eax
mov eax, dword [0x4843f8]
cmp eax, esi
mov dword [esp + 0x50], ecx
mov ecx, dword [edi + 0x20]
mov dword [esp + 0x54], edx
mov dword [esp + 0x5c], ecx
jne 0x418851
push 0x30
call fcn.0044ea4e
add esp, 4
cmp eax, esi
je 0x41884a
mov esi, eax
call fcn.004139e0
jmp 0x41884c
xor eax, eax
mov dword [0x4843f8], eax
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.004067e0
test eax, eax
je 0x4188b1
mov eax, dword [eax + 4]
test eax, eax
mov dword [esp + 0x3c], eax
je 0x41888b
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, eax
call edx
mov ecx, dword [eax]
mov ebp, dword [eax + 4]
mov dword [esp + 0x1c], ecx
mov eax, dword [0x4843f8]
test eax, eax
mov ebx, dword [edi + 0xd8]
jne 0x4188c2
push 0x30
call fcn.0044ea4e
add esp, 4
test eax, eax
je 0x4188bb
mov esi, eax
call fcn.004139e0
jmp 0x4188bd
mov dword [esp + 0x3c], 0
jmp 0x41888b
xor eax, eax
mov dword [0x4843f8], eax
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.004067e0
test eax, eax
je 0x418919
mov eax, dword [eax + 4]
test eax, eax
mov dword [esp + 0x40], eax
je 0x4188f3
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
call edx
mov eax, dword [0x4843f8]
test eax, eax
mov ebx, dword [edi + 0xdc]
jne 0x41892a
push 0x30
call fcn.0044ea4e
add esp, 4
test eax, eax
je 0x418923
mov esi, eax
call fcn.004139e0
jmp 0x418925
mov dword [esp + 0x40], 0
jmp 0x4188f3
xor eax, eax
mov dword [0x4843f8], eax
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x34]
push ecx
call fcn.004067e0
test eax, eax
je 0x4189a2
mov eax, dword [eax + 4]
test eax, eax
mov dword [esp + 0x34], eax
je 0x418968
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
call edx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
mov eax, dword [edi + 0xcc]
test eax, eax
je 0x418974
mov ebp, eax
mov eax, dword [edi + 0xc8]
test eax, eax
mov ecx, eax
jne 0x418984
mov ecx, dword [esp + 0x1c]
mov eax, dword [edi + 0x100]
sub eax, 0
je 0x4189ac
sub eax, 1
jne 0x4189b8
mov eax, dword [edi + 0xc4]
add eax, ecx
add dword [esp + 0x50], eax
jmp 0x4189b8
mov dword [esp + 0x34], 0
jmp 0x418968
mov ecx, dword [edi + 0xc4]
add ecx, ebp
add dword [esp + 0x54], ecx
mov eax, dword [0x4843f8]
test eax, eax
mov ebx, dword [edi + 0xd4]
jne 0x4189e5
push 0x30
call fcn.0044ea4e
add esp, 4
test eax, eax
je 0x4189de
mov esi, eax
call fcn.004139e0
jmp 0x4189e0
xor eax, eax
mov dword [0x4843f8], eax
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.004067e0
test eax, eax
mov esi, dword [esp + 0x94]
je 0x418a35
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x418a35
mov ebx, dword [esp + 0x50]
mov edx, dword [ecx]
push 0
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov ebx, dword [esp + 0x68]
mov dword [eax + 4], ebx
mov ebx, dword [esp + 0x6c]
mov dword [eax + 8], ebx
mov ebx, dword [esp + 0x70]
mov dword [eax + 0xc], ebx
mov eax, dword [edx + 0x14]
push esi
call eax
push 1
push esi
call dword [0x46a070]
mov eax, dword [edi + 0x104]
cmp eax, 0xffffffff
mov ecx, dword [0x46a088]
mov dword [esp + 0x14], 0xffffffff
je 0x418a61
push eax
push esi
call ecx
mov ebp, dword [esp + 0x28]
jmp 0x418a83
mov eax, dword [edi + 0x54]
cmp eax, 0xffffffff
je 0x418a73
push eax
push esi
call ecx
mov ebp, dword [esp + 0x28]
jmp 0x418a83
mov ebp, dword [esp + 0x28]
mov eax, dword [ebp + 0xc]
cmp eax, 0xffffffff
je 0x418a87
push eax
push esi
call ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x20]
test eax, eax
mov dword [esp + 0x1c], 0
je 0x418aa2
push eax
push esi
call dword [0x46a030]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x9c]
xor edx, edx
test eax, eax
je 0x418ada
mov edi, edi
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x419046
mov ecx, eax
mov ecx, dword [ecx + 8]
test ecx, ecx
mov eax, dword [eax]
je 0x418ad6
cmp dword [ecx + 0xbc], 0
jne 0x418ad6
add edx, 1
test eax, eax
jne 0x418ab0
mov esi, dword [esp + 0x38]
xor ebx, ebx
test esi, esi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x44], ebx
jle 0x418e1e
test ebx, ebx
jl 0x418b2f
cmp ebx, dword [edi + 0xa4]
jge 0x418b2f
jb 0x418b02
xor eax, eax
jmp 0x418b19
mov eax, dword [edi + 0x9c]
test eax, eax
je 0x418b19
test ebx, ebx
jbe 0x418b19
mov ecx, ebx
sub ecx, 1
mov eax, dword [eax]
jne 0x418b12
xor ecx, ecx
xor ebp, ebp
cmp eax, ebp
setne cl
cmp ecx, ebp
je 0x419046
mov eax, dword [eax + 8]
jmp 0x418b33
xor eax, eax
xor ebp, ebp
cmp dword [eax + 0xbc], ebp
jne 0x418e07
lea ecx, [esp + 0x50]
push ecx
push ebx
mov esi, edi
call fcn.004190d0
cmp dword [esp + 0x34], ebp
je 0x418c92
mov ecx, 1
cmp dword [esp + 0x2c], ecx
jle 0x418c92
mov eax, dword [edi + 0x100]
sub dword [esp + 0x2c], ecx
sub eax, ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ebp
mov dword [esp + 0x6c], ebp
je 0x418bed
sub eax, ecx
jne 0x418c58
mov ecx, dword [esp + 0x5c]
mov eax, dword [edi + 0xbc]
mov edx, dword [esp + 0x58]
add eax, ecx
push eax
mov eax, dword [esp + 0x54]
push edx
push ecx
push eax
lea ecx, [esp + 0x70]
push ecx
call dword [0x46a37c]
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x68]
cmp eax, ecx
jle 0x418bc2
mov dword [esp + 0x60], ecx
mov dword [esp + 0x68], eax
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x6c]
cmp ecx, eax
jle 0x418bdc
mov edx, ecx
mov ecx, eax
mov eax, edx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x6c], eax
sub eax, ecx
sub eax, dword [esp + 0x4c]
cdq
sub eax, edx
sar eax, 1
neg eax
push eax
push ebp
jmp 0x418c4d
mov ecx, dword [esp + 0x58]
mov eax, dword [edi + 0xbc]
mov edx, dword [esp + 0x5c]
push edx
add eax, ecx
push eax
mov eax, dword [esp + 0x5c]
push eax
push ecx
lea ecx, [esp + 0x70]
push ecx
call dword [0x46a37c]
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x68]
cmp ecx, eax
jle 0x418c2a
mov edx, ecx
mov ecx, eax
mov eax, edx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x68], eax
mov edx, dword [esp + 0x64]
mov esi, dword [esp + 0x6c]
cmp edx, esi
jle 0x418c3e
mov dword [esp + 0x64], esi
mov dword [esp + 0x6c], edx
sub eax, ecx
sub eax, dword [esp + 0x48]
push ebp
cdq
sub eax, edx
sar eax, 1
neg eax
push eax
lea edx, [esp + 0x68]
push edx
call dword [0x46a3f8]
mov esi, dword [esp + 0x60]
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx]
mov ebp, dword [esp + 0x94]
push 0xffffffffffffffff
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [esp + 0x78]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x7c]
mov dword [eax + 8], esi
mov esi, dword [esp + 0x80]
mov dword [eax + 0xc], esi
mov eax, dword [edx + 0x14]
push ebp
call eax
jmp 0x418c99
mov ebp, dword [esp + 0x94]
cmp ebx, dword [edi + 0xb8]
je 0x418e07
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x418ce1
mov esi, dword [esp + 0x50]
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
xor eax, eax
cmp ebx, dword [edi + 0xb4]
sete al
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [esp + 0x68]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x6c]
mov dword [eax + 8], esi
mov esi, dword [esp + 0x70]
push ebp
mov dword [eax + 0xc], esi
call edx
mov esi, dword [esp + 0x40]
test esi, esi
je 0x418d5c
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x74], ecx
mov ecx, dword [edi + 0xf4]
push ecx
mov dword [esp + 0x80], eax
mov eax, dword [edi + 0xf0]
push eax
lea ecx, [esp + 0x78]
push ecx
mov dword [esp + 0x84], edx
call dword [0x46a3d4]
mov ecx, dword [esp + 0x70]
mov edx, dword [esi]
mov edx, dword [edx + 0x14]
push ebx
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x88]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x8c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x90]
mov dword [eax + 0xc], ecx
push ebp
mov ecx, esi
call edx
mov ecx, dword [edi + 0xfc]
mov eax, dword [edi + 0xf8]
push ecx
push eax
lea eax, [esp + 0x58]
push eax
call dword [0x46a3d4]
test ebx, ebx
jl 0x418db2
cmp ebx, dword [edi + 0xa4]
jge 0x418db2
jb 0x418d87
xor eax, eax
jmp 0x418d9e
mov eax, dword [edi + 0x9c]
test eax, eax
je 0x418d9e
test ebx, ebx
jbe 0x418d9e
mov ecx, ebx
sub ecx, 1
mov eax, dword [eax]
jne 0x418d97
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x419046
mov eax, dword [eax + 8]
jmp 0x418db4
xor eax, eax
mov edx, dword [eax + 0xb8]
test edx, edx
jne 0x418dc2
xor eax, eax
jmp 0x418dd6
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x418dc7
sub eax, esi
sar eax, 1
mov ebx, eax
push edx
lea eax, [esp + 0x28]
call fcn.004245c0
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx - 0xc]
push 0x88a5
lea edx, [esp + 0x54]
push edx
push eax
mov eax, dword [esp + 0xa0]
push ecx
push eax
call dword [0x46a378]
mov ebx, dword [esp + 0x44]
mov esi, dword [esp + 0x38]
add ebx, 1
cmp ebx, esi
mov dword [esp + 0x44], ebx
jl 0x418af0
mov ebp, dword [esp + 0x28]
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x418e49
cmp dword [esp + 0x1c], 0
jne 0x418e41
mov ecx, dword [esp + 0x94]
push eax
push ecx
call dword [0x46a030]
mov dword [esp + 0x1c], eax
jmp 0x418e49
mov dword [esp + 0x1c], 0
cmp dword [ebp + 0x10], 0xffffffff
je 0x418e76
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x94]
mov ebx, dword [0x46a088]
push edx
push eax
call ebx
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x94]
push eax
push ecx
call ebx
mov dword [esp + 0x14], eax
xor ebx, ebx
test esi, esi
jle 0x418ed7
mov esi, dword [esp + 0x38]
test ebx, ebx
jl 0x418ebd
cmp ebx, dword [edi + 0xa4]
jge 0x418ebd
jb 0x418e92
xor eax, eax
jmp 0x418ea9
mov eax, dword [edi + 0x9c]
test eax, eax
je 0x418ea9
test ebx, ebx
jbe 0x418ea9
mov ecx, ebx
sub ecx, 1
mov eax, dword [eax]
jne 0x418ea2
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x419046
mov eax, dword [eax + 8]
jmp 0x418ebf
xor eax, eax
cmp dword [eax + 0xbc], 0
jne 0x418ed0
cmp ebx, dword [edi + 0xb8]
je 0x418f40
add ebx, 1
cmp ebx, esi
jl 0x418e80
mov ebp, dword [esp + 0x94]
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x418eef
push eax
push ebp
call dword [0x46a088]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x418eff
push eax
push ebp
call dword [0x46a030]
mov byte [esp + 0x8c], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418f27
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret 4
lea edx, [esp + 0x50]
push edx
push ebx
mov esi, edi
call fcn.004190d0
mov ecx, dword [esp + 0x3c]
test ecx, ecx
mov ebp, dword [esp + 0x94]
je 0x418f86
mov esi, dword [esp + 0x50]
mov edx, dword [ecx]
push 2
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [esp + 0x68]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x6c]
mov dword [eax + 8], esi
mov esi, dword [esp + 0x70]
mov dword [eax + 0xc], esi
mov eax, dword [edx + 0x14]
push ebp
call eax
mov esi, dword [esp + 0x40]
test esi, esi
je 0x418ffb
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x7c], ecx
mov ecx, dword [edi + 0xf4]
mov dword [esp + 0x78], eax
mov eax, dword [edi + 0xf0]
push ecx
mov dword [esp + 0x78], edx
push eax
lea edx, [esp + 0x78]
push edx
call dword [0x46a3d4]
mov ecx, dword [esp + 0x70]
mov edx, dword [esi]
mov edx, dword [edx + 0x14]
push ebx
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x88]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x8c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x90]
mov dword [eax + 0xc], ecx
push ebp
mov ecx, esi
call edx
mov ecx, dword [edi + 0xfc]
mov eax, dword [edi + 0xf8]
push ecx
push eax
lea eax, [esp + 0x58]
push eax
call dword [0x46a3d4]
test ebx, ebx
jl 0x419055
cmp ebx, dword [edi + 0xa4]
jge 0x419055
jb 0x419026
xor eax, eax
jmp 0x41903b
mov eax, dword [edi + 0x9c]
test eax, eax
je 0x41903b
test ebx, ebx
jbe 0x41903b
sub ebx, 1
mov eax, dword [eax]
jne 0x419034
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x419050
push 0x80004005
call fcn.0041fd20
mov eax, dword [eax + 8]
jmp 0x419057
xor eax, eax
mov edx, dword [eax + 0xb8]
test edx, edx
jne 0x419065
xor eax, eax
jmp 0x41907f
mov eax, edx
lea esi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x419070
sub eax, esi
sar eax, 1
mov ebx, eax
push edx
lea eax, [esp + 0x28]
call fcn.004245c0
mov edi, dword [edi + 0x108]
xor esi, esi
test edi, edi
je 0x4190a1
push edi
push ebp
call dword [0x46a030]
mov esi, eax
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx - 0xc]
push 0x88a5
lea edx, [esp + 0x54]
push edx
push eax
push ecx
push ebp
call dword [0x46a378]
test esi, esi
je 0x418ede
push esi
push ebp
call dword [0x46a030]
jmp 0x418ede