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

Disassembly:
push 0xffffffffffffffff
push 0x425798
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42fd60]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
mov esi, dword [esp + 0x94]
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + 4]
push ecx
mov ecx, esi
call fcn.004042a0
mov eax, dword [esi + 0x18]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x18]
xor ebp, ebp
mov dword [esi + 0x1c], ebp
mov dword [eax], eax
mov eax, dword [esi + 0x18]
mov dword [eax + 8], eax
call fcn.004077f5
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x40616f
push 0x80004005
call fcn.00402020
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov eax, 1
cmp dword [esp + 0x98], eax
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x1c], eax
jle 0x406622
mov dword [esp + 0x20], 2
jmp 0x4061b2
xor ebp, ebp
mov edi, dword [esp + 0x9c]
mov ebx, dword [esp + 0x1c]
mov edx, dword [edi + ebx*4]
cmp edx, ebp
je 0x406564
mov eax, edx
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4061d0
sub eax, esi
sar eax, 1
cmp eax, 1
jle 0x406564
movzx eax, word [edx]
cmp ax, 0x2d
je 0x4061fb
cmp ax, 0x2f
jne 0x406564
movzx ecx, word [edx + 2]
push ecx
call fcn.0041436c
add esp, 4
test eax, eax
sete al
test al, al
je 0x406564
mov edx, dword [edi + ebx*4]
cmp edx, ebp
jne 0x406220
xor eax, eax
jmp 0x406234
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x406225
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x2c]
call fcn.00401f70
call fcn.004077f5
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
je 0x406165
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x20]
cmp ecx, dword [esp + 0x98]
mov byte [esp + 0x8c], 1
jge 0x406313
mov edx, dword [edi + ebx*4 + 4]
cmp edx, ebp
je 0x4062c9
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x406290
sub eax, esi
sar eax, 1
cmp eax, 1
jle 0x4062c9
movzx eax, word [edx]
cmp ax, 0x2d
je 0x4062b3
cmp ax, 0x2f
jne 0x4062c9
movzx edx, word [edx + 2]
push edx
call fcn.0041436c
add esp, 4
test eax, eax
sete al
test al, al
jne 0x406305
mov edx, dword [edi + ebx*4 + 4]
cmp edx, ebp
jne 0x4062d5
xor eax, eax
jmp 0x4062ef
mov eax, edx
lea esi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4062e0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x20]
call fcn.00401f70
inc ebx
inc dword [esp + 0x20]
mov dword [esp + 0x1c], ebx
jmp 0x406313
push 0x42a4ec
lea ecx, [esp + 0x1c]
call fcn.00406070
push 4
call fcn.004073cf
add esp, 4
cmp eax, ebp
je 0x406329
lea ecx, [esp + 0x4c]
mov dword [eax], ecx
jmp 0x40632b
xor eax, eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], ebp
mov bl, 3
lea esi, [esp + 0x18]
mov byte [esp + 0x8c], bl
call fcn.00406900
test al, al
je 0x4063c4
mov edx, dword [esp + 0x58]
cmp edx, ebp
jne 0x40635d
xor ecx, ecx
jmp 0x406366
mov ecx, dword [esp + 0x60]
sub ecx, edx
sar ecx, 2
mov eax, dword [esp + 0x5c]
mov esi, eax
sub esi, edx
sar esi, 2
cmp esi, ecx
mov esi, eax
jae 0x4063a2
mov ecx, dword [esp + 0x94]
mov byte [esp + 0x2c], 0
mov edx, dword [esp + 0x2c]
push edx
push ecx
lea edx, [esp + 0x20]
push edx
push 1
push eax
call fcn.00405e00
add esp, 0x14
add esi, 4
mov dword [esp + 0x5c], esi
jmp 0x4063c4
cmp edx, eax
jbe 0x4063ab
call fcn.00413f84
mov eax, dword [esp + 0x4c]
push esi
push eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x3c]
push ecx
lea eax, [esp + 0x5c]
call fcn.004059a0
mov esi, dword [esp + 0x24]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
call eax
cmp dword [esi + 0xc], ebp
lea ecx, [esi + 0xc]
jl 0x4063ee
cmp eax, dword [esi]
jne 0x4063ee
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x406429
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
cmp edi, ebp
je 0x406672
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.0041335b
add esp, 0x10
add edi, 0x10
mov dword [esp + 0x64], edi
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esp + 0x50]
mov byte [esp + 0x90], 4
call fcn.00406c40
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x44]
mov byte [esp + 0x90], 5
mov ecx, dword [esp + 0x98]
push eax
push ecx
call fcn.004069a0
mov byte [esp + 0x8c], bl
mov esi, dword [esp + 0x74]
cmp esi, ebp
je 0x4064b2
mov eax, dword [esp + 0x78]
mov edi, eax
cmp esi, eax
je 0x4064a9
mov edi, edi
mov eax, dword [esi]
sub eax, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40649e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x406480
mov esi, dword [esp + 0x74]
push esi
call fcn.004073fe
add esp, 4
mov ecx, dword [esp + 0x68]
push ecx
mov dword [esp + 0x78], ebp
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x80], ebp
call fcn.004073fe
mov eax, dword [esp + 0x68]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4064ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x8c], 1
mov esi, dword [esp + 0x58]
cmp esi, ebp
je 0x40653a
mov eax, dword [esp + 0x5c]
mov edi, eax
cmp esi, eax
je 0x406531
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406526
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x406508
mov esi, dword [esp + 0x58]
push esi
call fcn.004073fe
add esp, 4
mov ecx, dword [esp + 0x4c]
push ecx
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], ebp
call fcn.004073fe
mov byte [esp + 0x90], 0
mov eax, dword [esp + 0x1c]
add esp, 4
jmp 0x4065e5
mov ebp, dword [esp + 0x94]
lea ecx, [esp + 0x38]
push ecx
push ebp
lea ebx, [esp + 0x2c]
call fcn.00406af0
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebp]
test esi, esi
je 0x40658d
cmp esi, eax
je 0x406592
call fcn.00413f84
cmp edi, ebx
je 0x406601
mov edx, dword [esp + 0x9c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [edx + eax*4]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00401cb0
mov byte [esp + 0x8c], 6
test esi, esi
jne 0x40666b
call fcn.00413f84
cmp edi, dword [esi + 0x18]
jne 0x4065cd
call fcn.00413f84
add edi, 0x10
lea ebx, [esp + 0x28]
call fcn.00405930
mov byte [esp + 0x8c], 0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406601
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
inc dword [esp + 0x20]
inc eax
cmp eax, dword [esp + 0x98]
mov dword [esp + 0x1c], eax
jl 0x4061b0
mov esi, dword [esp + 0x94]
mov esi, dword [esi + 0x1c]
mov dword [esp + 0x8c], 0xffffffff
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 0x406650
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret 0xc
mov esi, dword [esi]
jmp 0x4065c3
call fcn.00402040
int3