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

Disassembly:
push 0xffffffffffffffff
push 0x418db1
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41e040]
xor eax, esp
push eax
lea eax, [esp + 0x94]
mov dword fs:[0], eax
lea eax, [esp + 0x78]
push eax
call fcn.004056f0
lea ecx, [esp + 0x18]
push ecx
xor ebp, ebp
mov ecx, 0x41b010
mov dword [esp + 0xa0], ebp
call fcn.00404df0
mov ecx, dword [esp + 0xa8]
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0xa8], 1
call fcn.00401980
mov byte [esp + 0x9c], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403196
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0x84]
mov edx, ecx
sub edx, eax
xor esi, esi
sar edx, 2
mov dword [esp + 0x20], esi
test edx, edx
jbe 0x403776
push 4
call fcn.0040cb47
add esp, 4
cmp eax, ebp
je 0x4031cf
lea ecx, [esp + 0x48]
mov dword [eax], ecx
jmp 0x4031d1
xor eax, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
lea edx, [esp + 0x18]
push edx
mov ecx, 0x41b018
mov byte [esp + 0xa0], 3
call fcn.00404df0
mov byte [esp + 0x9c], 4
mov eax, dword [esp + 0x88]
sub eax, dword [esp + 0x84]
sar eax, 2
cmp esi, eax
jb 0x40321a
call fcn.0040ced9
mov eax, dword [esp + 0x84]
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x1c]
push edx
lea ecx, [eax + esi*4]
push ecx
call fcn.00401980
mov byte [esp + 0x9c], 3
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40325c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x58]
mov esi, dword [esp + 0x54]
mov ecx, eax
sub ecx, esi
and ecx, 0xfffffffc
cmp ecx, 8
jne 0x4036f3
push 4
call fcn.0040cb47
add esp, 4
cmp eax, ebp
je 0x40328a
lea edx, [esp + 0x60]
mov dword [eax], edx
jmp 0x40328c
xor eax, eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], ebp
lea eax, [esp + 0x1c]
mov bl, 6
push eax
mov ecx, 0x41b020
mov byte [esp + 0xa0], bl
call fcn.00404df0
mov byte [esp + 0x9c], 7
mov ecx, dword [esp + 0x58]
sub ecx, dword [esp + 0x54]
sar ecx, 2
cmp ecx, 1
ja 0x4032d1
call fcn.0040ced9
mov ecx, dword [esp + 0x54]
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0x20]
push eax
add ecx, 4
push ecx
call fcn.00401980
mov byte [esp + 0x9c], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40330f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x58]
sub ecx, dword [esp + 0x54]
sar ecx, 2
test ecx, ecx
ja 0x403323
call fcn.0040ced9
mov ecx, dword [esp + 0x54]
call fcn.00402e30
mov eax, dword [esp + 0x70]
sub eax, dword [esp + 0x6c]
sar eax, 2
cmp eax, 2
jne 0x4034d9
mov edx, dword [0x4200ac]
mov eax, dword [edx + 0xc]
mov ecx, 0x4200ac
call eax
mov edx, dword [0x4200ac]
lea esi, [eax + 0x10]
mov eax, dword [edx + 0xc]
mov ecx, 0x4200ac
mov dword [esp + 0x28], esi
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
mov byte [esp + 0x9c], 8
mov edx, dword [esp + 0x58]
mov ecx, edx
sub ecx, dword [esp + 0x54]
sar ecx, 2
test ecx, ecx
ja 0x403390
call fcn.0040ced9
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x4033e7
cmp dword [esi + 0xc], ebp
lea edi, [esi + 0xc]
jl 0x4033d4
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4033d4
call fcn.00406a80
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4033cb
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x28], ebx
jmp 0x4033e3
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x2c]
call fcn.00406990
xor ebp, ebp
mov edx, dword [esp + 0x58]
sub edx, dword [esp + 0x54]
sar edx, 2
cmp edx, 1
ja 0x4033f8
call fcn.0040ced9
mov ecx, dword [esp + 0x54]
mov ecx, dword [ecx + 4]
mov esi, dword [esp + 0x2c]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x40344e
cmp dword [esi + 0xc], ebp
lea edi, [esi + 0xc]
jl 0x403441
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x403441
call fcn.00406a80
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x403438
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x2c], ebx
jmp 0x40344e
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x30]
call fcn.00406990
mov ecx, dword [esp + 0x70]
sub ecx, dword [esp + 0x6c]
sar ecx, 2
test ecx, ecx
ja 0x403462
call fcn.0040ced9
mov eax, dword [esp + 0x6c]
call fcn.004039a0
mov edx, dword [esp + 0x70]
sub edx, dword [esp + 0x6c]
mov dword [esp + 0x30], eax
sar edx, 2
cmp edx, 1
ja 0x403484
call fcn.0040ced9
mov eax, dword [esp + 0x6c]
mov eax, dword [eax + 4]
push eax
call fcn.0040d1eb
mov edi, dword [esp + 0xb0]
add esp, 4
lea ebx, [esp + 0x28]
mov dword [esp + 0x34], eax
call fcn.00405910
mov byte [esp + 0x9c], 6
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4034d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
jmp 0x403666
cmp eax, 1
jne 0x403684
mov edx, dword [0x4200ac]
mov eax, dword [edx + 0xc]
mov ecx, 0x4200ac
call eax
mov edx, dword [0x4200ac]
add eax, 0x10
mov dword [esp + 0x38], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4200ac
call eax
add eax, 0x10
mov dword [esp + 0x3c], eax
mov bl, 9
mov byte [esp + 0x9c], bl
mov ecx, dword [esp + 0x58]
sub ecx, dword [esp + 0x54]
sar ecx, 2
test ecx, ecx
ja 0x40352d
call fcn.0040ced9
mov eax, dword [esp + 0x54]
lea edi, [esp + 0x38]
call fcn.00405e50
mov edx, dword [esp + 0x58]
sub edx, dword [esp + 0x54]
sar edx, 2
cmp edx, 1
ja 0x40354f
call fcn.0040ced9
mov eax, dword [esp + 0x54]
add eax, 4
lea edi, [esp + 0x3c]
call fcn.00405e50
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x54]
sar eax, 2
cmp eax, 1
ja 0x403574
call fcn.0040ced9
mov eax, dword [esp + 0x54]
add eax, 4
call fcn.004039a0
mov ecx, dword [esp + 0x58]
sub ecx, dword [esp + 0x54]
mov dword [esp + 0x40], eax
sar ecx, 2
cmp ecx, 1
ja 0x403599
call fcn.0040ced9
mov eax, dword [esp + 0x54]
add eax, 4
call fcn.00403a40
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x54]
mov edx, ecx
sub edx, eax
sar edx, 2
cmp edx, 1
ja 0x4035ca
call fcn.0040ced9
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
sub ecx, eax
sar ecx, 2
lea esi, [eax + 4]
test ecx, ecx
ja 0x4035df
call fcn.0040ced9
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0xa4]
push esi
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00403820
lea edi, [esp + 0x3c]
mov byte [esp + 0x9c], 0xa
call fcn.00405e50
mov byte [esp + 0x9c], bl
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 0x40362a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0xac]
lea ebx, [esp + 0x38]
call fcn.00405910
mov byte [esp + 0x9c], 6
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403662
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403682
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ebp, ebp
mov byte [esp + 0x9c], 3
mov esi, dword [esp + 0x6c]
cmp esi, ebp
je 0x4036d2
mov edi, dword [esp + 0x70]
cmp esi, edi
je 0x4036c5
lea esp, [esp]
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 0x4036be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x4036a0
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.0040ca95
add esp, 4
mov edx, dword [esp + 0x60]
push edx
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], ebp
call fcn.0040ca95
mov eax, dword [esp + 0x5c]
mov esi, dword [esp + 0x58]
add esp, 4
mov byte [esp + 0x9c], 0
cmp esi, ebp
je 0x403737
mov edi, eax
cmp esi, eax
je 0x40372e
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 0x403723
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x403705
mov esi, dword [esp + 0x54]
push esi
call fcn.0040ca95
add esp, 4
mov ecx, dword [esp + 0x48]
push ecx
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], ebp
call fcn.0040ca95
mov ecx, dword [esp + 0x8c]
mov eax, dword [esp + 0x88]
mov esi, dword [esp + 0x24]
mov edx, ecx
sub edx, eax
inc esi
sar edx, 2
add esp, 4
mov dword [esp + 0x20], esi
cmp esi, edx
jb 0x4031b9
mov edx, dword [esp + 0xac]
mov edi, dword [edx + 0x10]
sub edi, dword [edx + 0xc]
mov dword [esp + 0x9c], 0xffffffff
sar edi, 4
cmp eax, ebp
je 0x4037d5
mov ebx, ecx
mov esi, eax
cmp eax, ecx
je 0x4037cc
lea ecx, [ecx]
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 0x4037be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, ebx
jne 0x4037a0
mov eax, dword [esp + 0x84]
push eax
call fcn.0040ca95
add esp, 4
mov ecx, dword [esp + 0x78]
push ecx
mov dword [esp + 0x88], ebp
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x90], ebp
call fcn.0040ca95
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret 0xc