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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49d0c8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x4d58b0]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
push 4
call fcn.0043dab4
xor esi, esi
add esp, 4
cmp eax, esi
je 0x415704
lea ecx, [esp + 0x5c]
mov dword [eax], ecx
jmp 0x415706
xor eax, eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
push 4
mov dword [esp + 0x84], 1
call fcn.0043dab4
add esp, 4
cmp eax, esi
je 0x415737
lea edx, [esp + 0x44]
mov dword [eax], edx
jmp 0x415739
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
push 0x4c3010
lea ecx, [esp + 0x20]
mov byte [esp + 0x84], 3
call fcn.00409870
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x84], 4
call fcn.004048f0
mov byte [esp + 0x80], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41579d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x4c301c
lea ecx, [esp + 0x20]
call fcn.00409870
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x48]
mov byte [esp + 0x84], 5
call fcn.004048f0
mov byte [esp + 0x80], 3
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 0x4157e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x4c2d30
lea ecx, [esp + 0x20]
call fcn.00409870
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x48]
mov byte [esp + 0x84], 6
call fcn.004048f0
mov byte [esp + 0x80], 3
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 0x415835
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x4c3028
lea ecx, [esp + 0x20]
call fcn.00409870
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x48]
mov byte [esp + 0x84], 7
call fcn.004048f0
mov byte [esp + 0x80], 3
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 0x415881
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x4dfc8c]
mov eax, dword [0x4dfc88]
mov ebx, ecx
cmp eax, ecx
jbe 0x4158a2
call fcn.0045e7a3
mov ecx, dword [0x4dfc8c]
mov eax, dword [0x4dfc88]
mov esi, dword [0x4dfc7c]
mov edi, eax
cmp eax, ecx
jbe 0x4158b3
call fcn.0045e7a3
mov ecx, dword [0x4dfc7c]
push ebx
push esi
push edi
push ecx
lea edx, [esp + 0x3c]
push edx
mov ecx, 0x4dfc7c
call fcn.00405260
call fcn.0043dffa
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4158e6
push 0x80004005
call fcn.00409d60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x80], 8
call fcn.0043dffa
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x415918
push 0x80004005
call fcn.00409d60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
mov byte [esp + 0x80], 9
movzx ecx, byte [0x4daea8]
shl ecx, 9
add ecx, 0x4ba6a0
push ecx
lea ecx, [esp + 0x1c]
call fcn.00409870
mov byte [esp + 0x80], 0xa
cmp dword [0x4df8ac], 0
jne 0x415990
movzx edx, byte [0x4daea8]
shl edx, 9
add edx, 0x4ba2a0
jne 0x415971
xor eax, eax
jmp 0x415985
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x415976
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x20]
call fcn.00409730
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push 0x4dfcd0
push eax
call fcn.00404640
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x84], 0xb
call fcn.00408890
mov byte [esp + 0x80], 0xa
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4159e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor esi, esi
mov ecx, dword [0x4df898]
lea ebx, [esi + 1]
push ebx
push ecx
mov dword [esp + 0x18], ebx
call fcn.0047e040
add esp, 8
test eax, eax
je 0x415ace
movzx eax, byte [0x4daea8]
lea edx, [eax + eax*2]
lea eax, [esi + edx*4]
shl eax, 6
add eax, 0x4b7ca0
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.0040da30
add esp, 0xc
mov byte [esp + 0x80], 0xc
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x415a89
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x415a7b
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x415a7b
push eax
call fcn.00408820
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x415a6e
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x10]
jmp 0x415a89
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00409730
mov byte [esp + 0x80], 0xa
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415ab1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x14]
push 0
push 1
push 1
push 0x4dfc7c
lea ecx, [esp + 0x54]
push ecx
push edi
call fcn.00483370
add esp, 0x18
mov esi, ebx
cmp esi, 0x20
jl 0x4159e3
mov eax, dword [0x4dfca4]
mov edi, dword [0x4dfca0]
mov ebx, eax
cmp edi, eax
jbe 0x415afa
call fcn.0045e7a3
mov eax, dword [0x4dfca4]
mov edi, dword [0x4dfca0]
mov esi, dword [0x4dfc94]
cmp edi, eax
jbe 0x415b09
call fcn.0045e7a3
mov edx, dword [0x4dfc94]
push ebx
push esi
push edi
push edx
lea eax, [esp + 0x3c]
push eax
mov ecx, 0x4dfc94
call fcn.00405260
mov eax, dword [0x4dfc8c]
sub eax, dword [0x4dfc88]
mov dword [esp + 0x10], 0
sar eax, 2
test eax, eax
je 0x415c82
mov ecx, dword [0x4dfcc0]
mov edx, dword [0x4dfcac]
mov dword [esp + 0x28], ecx
mov edi, ecx
mov ecx, dword [ecx]
mov dword [esp + 0x24], edx
mov ebx, edx
mov dword [esp + 0x30], ecx
mov esi, edx
cmp dword [esp + 0x10], eax
jb 0x415b6b
call fcn.0045e7a3
mov edx, dword [0x4dfc88]
mov eax, dword [esp + 0x10]
lea edx, [edx + eax*4]
test ebx, ebx
je 0x415b80
mov ebx, dword [ebx]
jmp 0x415b82
xor ebx, ebx
mov ecx, dword [ebx]
test esi, esi
je 0x415b8c
mov eax, dword [esi]
jmp 0x415b8e
xor eax, eax
mov eax, dword [eax]
push edi
push ecx
mov ecx, dword [esp + 0x38]
push ecx
push eax
lea eax, [esp + 0x44]
push eax
mov ebx, edx
call fcn.00406fa0
mov edi, dword [eax + 4]
add esp, 0x14
cmp esi, dword [eax]
je 0x415bb3
call fcn.0045e7a3
test esi, esi
je 0x415bbd
cmp esi, dword [esp + 0x24]
je 0x415bc2
call fcn.0045e7a3
cmp edi, dword [esp + 0x28]
mov edi, dword [esp + 0x10]
jne 0x415c67
mov ecx, dword [0x4dfc8c]
sub ecx, dword [0x4dfc88]
sar ecx, 2
cmp edi, ecx
jb 0x415be8
call fcn.0045e7a3
mov edx, dword [0x4dfc88]
lea ebx, [edx + edi*4]
mov edx, dword [0x4dfca0]
test edx, edx
jne 0x415bff
xor ecx, ecx
jmp 0x415c0a
mov ecx, dword [0x4dfca8]
sub ecx, edx
sar ecx, 2
mov eax, dword [0x4dfca4]
mov esi, eax
sub esi, edx
sar esi, 2
cmp esi, ecx
mov esi, eax
jae 0x415c47
mov byte [esp + 0x20], 0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x20]
push ecx
push edx
push 0x4dfc9c
push ebx
push 1
push eax
call fcn.00407010
add esp, 0x18
add esi, 4
mov dword [0x4dfca4], esi
jmp 0x415c67
cmp edx, eax
jbe 0x415c50
call fcn.0045e7a3
mov eax, dword [0x4dfc94]
push ebx
push esi
push eax
lea eax, [esp + 0x48]
push eax
mov ecx, 0x4dfc94
call fcn.004051a0
mov eax, dword [0x4dfc8c]
sub eax, dword [0x4dfc88]
inc edi
sar eax, 2
mov dword [esp + 0x10], edi
cmp edi, eax
jb 0x415b40
mov ebx, dword [0x4dfca4]
cmp dword [0x4dfca0], ebx
jbe 0x415c95
call fcn.0045e7a3
mov esi, dword [0x4dfca0]
mov eax, dword [0x4dfc94]
mov edi, eax
cmp esi, dword [0x4dfca4]
jbe 0x415cb4
call fcn.0045e7a3
mov eax, dword [0x4dfc94]
test eax, eax
je 0x415cbc
cmp eax, edi
je 0x415cc1
call fcn.0045e7a3
cmp esi, ebx
je 0x415ccf
push ebx
push esi
call fcn.00418630
add esp, 8
cmp dword [0x4df8a4], 0
je 0x415cf8
cmp dword [0x4df89c], 0
jne 0x415cf8
call dword [0x49f390]
mov dword [0x4df890], eax
cmp eax, 0x2bf20
jbe 0x415cf8
call fcn.00402310
mov eax, dword [0x4dfca4]
sub eax, dword [0x4dfca0]
test eax, 0xfffffffc
jne 0x415d5b
mov ecx, dword [0x4dfc70]
cmp dword [ecx - 0xc], 0
jne 0x415d5b
cmp dword [0x4dfa78], 0
jne 0x415d5b
movzx edx, byte [0x4daea8]
shl edx, 9
add edx, 0x4b96a0
jne 0x415d35
xor eax, eax
jmp 0x415d4f
mov eax, edx
lea esi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x415d40
sub eax, esi
sar eax, 1
push eax
push edx
mov ecx, 0x4dfc74
call fcn.00409730
mov byte [esp + 0x80], 9
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 0x415d83
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x80], 8
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415dab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x80], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415dd3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x80], 1
mov esi, dword [esp + 0x50]
test esi, esi
je 0x415e22
mov eax, dword [esp + 0x54]
mov edi, eax
cmp esi, eax
je 0x415e19
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 0x415e0e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x415df0
mov esi, dword [esp + 0x50]
push esi
call fcn.0043dae3
add esp, 4
mov ecx, dword [esp + 0x44]
xor eax, eax
push ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
call fcn.0043dae3
mov dword [esp + 0x84], 0xffffffff
mov esi, dword [esp + 0x6c]
xor ebx, ebx
add esp, 4
cmp esi, ebx
je 0x415e92
mov eax, dword [esp + 0x6c]
mov edi, eax
cmp esi, eax
je 0x415e89
lea esp, [esp]
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 0x415e7e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x415e60
mov esi, dword [esp + 0x68]
push esi
call fcn.0043dae3
add esp, 4
mov ecx, dword [esp + 0x5c]
push ecx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
call fcn.0043dae3
add esp, 4
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret