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

Disassembly:
push 0xffffffffffffffff
push 0x41d176
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x425e48]
xor eax, esp
mov dword [esp + 0x2a4], eax
push ebp
push esi
push edi
mov eax, dword [0x425e48]
xor eax, esp
push eax
lea eax, [esp + 0x2b8]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x24], 0x41e9fc
mov dword [esp + 0x28], 0x41e9f4
mov dword [esp + 0x2c], 0x41e9ec
mov dword [esp + 0x30], 0x41e9e4
mov dword [esp + 0x34], 0x41e9dc
mov dword [esp + 0x38], 0x41e9d4
mov dword [esp + 0x3c], 0x41e9cc
mov dword [esp + 0x40], 0x41e9c4
mov dword [esp + 0x44], 0x41e9bc
mov dword [esp + 0x48], 0x41e9b4
mov dword [esp + 0x4c], 0x41e9ac
mov dword [esp + 0x50], 0x41e9a4
mov dword [esp + 0x54], 0x41e99c
mov dword [esp + 0x58], 0x41e994
mov dword [esp + 0x5c], 0x41e98c
mov dword [esp + 0x60], 0x41e984
mov dword [esp + 0x64], 0x41e97c
mov dword [esp + 0x68], 0x41e974
mov dword [esp + 0x6c], 0x41e96c
mov dword [esp + 0x70], 0x41e964
mov dword [esp + 0x74], 0x41e95c
mov dword [esp + 0x78], 0x41e954
mov dword [esp + 0x7c], 0x41e94c
mov dword [esp + 0x80], 0x41e944
mov dword [esp + 0x84], 0x41e93c
mov dword [esp + 0x88], 0x41e934
mov dword [esp + 0x8c], 0x41e92c
mov dword [esp + 0x90], 0x41e924
mov dword [esp + 0x94], 0x41e91c
mov dword [esp + 0x98], 0x41e914
mov dword [esp + 0x9c], 0x41e90c
mov dword [esp + 0xa0], 0x41e904
mov dword [esp + 0xa4], 0x41e8fc
mov dword [esp + 0xa8], 0x41e8f8
mov dword [esp + 0x18], 0x208
call fcn.00404d3d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4039cf
push 0x80004005
call fcn.00401940
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov edx, dword [0x425100]
lea ecx, [esp + 0x10]
push ecx
push edx
push 0x80000001
mov dword [esp + 0x2cc], 0
call dword [0x41e000]
test eax, eax
mov edi, dword [0x41e004]
jne 0x403b22
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0xb0]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
push 0
push eax
call edi
test eax, eax
jne 0x403b17
lea ecx, [esp + 0xac]
push ecx
lea ecx, [esp + 0x18]
call fcn.00403800
lea edx, [esp + 0xac]
push edx
push 0x41e8e0
call fcn.0040d3a5
add esp, 8
test eax, eax
jne 0x403a70
push 0x41e8dc
lea ecx, [ebp + 8]
call fcn.004029a0
jmp 0x403b17
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
je 0x403b17
push 0x2e
lea ecx, [esp + 0x18]
call fcn.00401c70
test eax, eax
jle 0x403ad3
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx - 0xc]
sub ecx, eax
sub ecx, 1
push ecx
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x1c]
call fcn.00402c30
lea esi, [ebp + 8]
push eax
mov ecx, esi
mov byte [esp + 0x2c4], 1
call fcn.00403750
lea ecx, [esp + 0x20]
mov byte [esp + 0x2c0], 0
call fcn.00402030
mov ecx, esi
call fcn.00402bd0
xor esi, esi
lea edi, [ebp + 8]
mov eax, 0x41e9fc
lea ecx, [ecx]
mov ecx, dword [edi]
push ecx
push eax
call dword [0x41e1d4]
test eax, eax
je 0x403afb
mov eax, dword [esp + esi*4 + 0x28]
add esi, 1
cmp word [eax], 0
jne 0x403ae0
mov eax, dword [esp + esi*4 + 0x24]
cmp word [eax], 0
jne 0x403b11
push 0x41e8da
mov ecx, edi
call fcn.004029a0
mov edi, dword [0x41e004]
mov ecx, dword [esp + 0x10]
push ecx
call dword [0x41e008]
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x403b36
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jne 0x403ba8
mov edx, dword [0x425104]
lea ecx, [esp + 0x10]
push ecx
push edx
push 0x80000001
call dword [0x41e000]
test eax, eax
jne 0x403ba8
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0xb0]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
push 0x41e8d4
push eax
call edi
lea eax, [esp + 0xac]
lea ecx, [ebp + 8]
lea esi, [eax + 2]
mov edi, edi
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x403b80
sub eax, esi
sar eax, 1
push eax
lea edx, [esp + 0xb0]
push edx
call fcn.00402b10
mov eax, dword [esp + 0x10]
push eax
call dword [0x41e008]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx - 0xc]
test eax, eax
lea esi, [ebp + 8]
jne 0x403c2e
mov eax, dword [0x425104]
lea edx, [esp + 0x10]
push edx
push eax
push 0x80000002
call dword [0x41e000]
test eax, eax
jne 0x403c2e
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0xb0]
push edx
lea eax, [esp + 0x24]
push eax
push 0
push 0x41e8d4
push ecx
call edi
lea eax, [esp + 0xac]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403c00
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0xb0]
push edx
mov ecx, esi
call fcn.00402b10
mov eax, dword [esp + 0x10]
mov ebp, dword [0x41e008]
push eax
call ebp
jmp 0x403c34
mov ebp, dword [0x41e008]
mov ecx, dword [esi]
cmp dword [ecx - 0xc], 0
jne 0x403ccd
mov eax, dword [0x425108]
lea edx, [esp + 0x10]
push edx
push eax
push 0x80000001
call dword [0x41e000]
test eax, eax
jne 0x403ccd
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0xb0]
push edx
lea eax, [esp + 0x24]
push eax
push 0
push 0
push ecx
call edi
lea eax, [esp + 0xac]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403c81
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0xb0]
push edx
mov ecx, esi
call fcn.00402b10
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x403cc6
push 0x41e8b8
push eax
call fcn.0040d3a5
add esp, 8
test eax, eax
jne 0x403cc6
push 0x41e8dc
mov ecx, esi
call fcn.004029a0
mov eax, dword [esp + 0x10]
push eax
call ebp
mov ecx, dword [esi]
cmp dword [ecx - 0xc], 0
jne 0x403d46
mov eax, dword [0x42510c]
lea edx, [esp + 0x10]
push edx
push eax
push 0x80000001
call dword [0x41e000]
test eax, eax
jne 0x403d46
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0xb0]
push edx
lea eax, [esp + 0x24]
push eax
push 0
push 0x41e8d4
push ecx
call edi
lea eax, [esp + 0xac]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403d20
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0xb0]
push edx
mov ecx, esi
call fcn.00402b10
mov eax, dword [esp + 0x10]
push eax
call ebp
mov ecx, dword [esi]
cmp dword [ecx - 0xc], 0
jne 0x403db8
mov eax, dword [0x42510c]
lea edx, [esp + 0x10]
push edx
push eax
push 0x80000002
call dword [0x41e000]
test eax, eax
jne 0x403db8
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0xb0]
push edx
lea eax, [esp + 0x24]
push eax
push 0
push 0x41e8d4
push ecx
call edi
lea eax, [esp + 0xac]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403d92
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0xb0]
push edx
mov ecx, esi
call fcn.00402b10
mov eax, dword [esp + 0x10]
push eax
call ebp
mov ecx, dword [esi]
cmp dword [ecx - 0xc], 0
jne 0x403dcc
push 0x41e8dc
mov ecx, esi
call fcn.004029a0
xor edi, edi
mov eax, 0x41e9fc
mov ecx, dword [esi]
push ecx
push eax
call dword [0x41e1d4]
test eax, eax
je 0x403dee
mov eax, dword [esp + edi*4 + 0x28]
add edi, 1
cmp word [eax], 0
jne 0x403dd3
mov edx, dword [esp + edi*4 + 0x24]
cmp word [edx], 0
jne 0x403e06
push 3
push 0x41e9c4
mov ecx, esi
call fcn.00402b10
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x2c0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403e31
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x2a4]
xor ecx, esp
call fcn.0040cebb
add esp, 0x2b4
ret