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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10085193
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
push ebx
push esi
push edi
mov eax, dword [0x100a6810]
xor eax, esp
push eax
lea eax, [esp + 0xe8]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x6ac]
sub eax, dword [edi + 0x6a8]
mov esi, dword [ebp + 0xc]
sar eax, 6
cmp esi, eax
ja 0x4141f7
mov ecx, dword [edi + 0x6ac]
sub ecx, dword [edi + 0x6a8]
sar ecx, 6
cmp esi, ecx
jb 0x413dd7
call 0x463734
shl esi, 6
add esi, dword [edi + 0x6a8]
mov dword [esp + 0x28], esi
je 0x4141f7
lea edx, [esp + 0x2c]
push edx
call fcn.0041fc10
xor ebx, ebx
mov dword [esp + 0xf0], ebx
lea eax, [esp + 0x44]
push eax
call fcn.0041fc10
mov byte [esp + 0xf0], 1
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x30]
push edx
mov eax, edi
call fcn.00413b60
mov ecx, dword [ebp + 0xc]
lea eax, [edi + 0x584]
push ecx
push eax
mov dword [esp + 0x28], eax
call fcn.00422d50
mov ecx, eax
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x38]
mov dword [esp + 0x1c], ecx
sar eax, 2
mov dword [esp + 0x18], ebx
cmp eax, ebx
jbe 0x414159
cmp dword [esp + 0x18], eax
jb 0x413e5c
call 0x463734
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x18]
mov esi, dword [edx + eax*4]
push 0x48
mov dword [edi + 0x648], 0x1b
mov dword [esp + 0x68], ebx
call 0x463fee
add esp, 4
mov dword [esp + 0x14], eax
mov byte [esp + 0xf0], 2
cmp eax, ebx
je 0x413e9c
push 0x100ab494
push eax
call fcn.00423700
jmp 0x413e9e
xor eax, eax
mov byte [esp + 0xf0], 1
push 0x58
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], 0x3d
mov dword [esp + 0x74], 7
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], 0xfaa
mov dword [esp + 0x84], 3
mov dword [esp + 0x88], 1
call 0x463fee
add esp, 4
mov dword [esp + 0x14], eax
mov byte [esp + 0xf0], 3
cmp eax, ebx
je 0x413f05
push eax
call fcn.00429c50
jmp 0x413f07
xor eax, eax
mov byte [esp + 0xf0], 1
mov edi, 0xa
push 0x58
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], edi
mov dword [esp + 0x94], 6
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa8], 2
call 0x463fee
add esp, 4
mov dword [esp + 0x14], eax
mov byte [esp + 0xf0], 4
cmp eax, ebx
je 0x413f76
push eax
call fcn.00429c50
jmp 0x413f78
xor eax, eax
mov byte [esp + 0xf0], 1
push 0x58
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xb4], 6
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xc4], edi
mov dword [esp + 0xc8], ebx
call 0x463fee
add esp, 4
mov dword [esp + 0x14], eax
mov byte [esp + 0xf0], 5
cmp eax, ebx
je 0x413fde
push eax
call fcn.00429c50
jmp 0x413fe0
xor eax, eax
mov byte [esp + 0xf0], 1
mov edi, dword [esi + 0x24]
mov edx, dword [esp + 0x20]
push 1
push edi
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0x24]
push 4
lea ecx, [esp + 0x70]
inc eax
push ecx
push eax
push edx
mov dword [esp + 0xe4], 0x4f
mov dword [esp + 0xe8], 7
mov dword [esp + 0xec], ebx
mov dword [esp + 0xf0], ebx
mov dword [esp + 0xf4], 0xfaa
mov dword [esp + 0xf8], 3
mov dword [esp + 0x34], eax
call fcn.00422ad0
mov eax, dword [ebp + 8]
push eax
mov ebx, esi
call fcn.00414c90
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x60]
push edx
add edi, 0x7c
call fcn.0041e550
mov esi, dword [edi + 0x18]
mov eax, dword [edi]
mov edi, dword [esp + 0x5c]
test edi, edi
je 0x414080
cmp edi, eax
je 0x414085
call 0x463734
mov ebx, dword [esp + 0x60]
cmp ebx, esi
je 0x414130
test edi, edi
jne 0x41420f
call 0x463734
cmp ebx, dword [edi + 0x18]
jne 0x4140a8
call 0x463734
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax + 4]
cmp ecx, 2
jle 0x414130
mov eax, dword [eax]
mov ebx, dword [eax + 8]
add eax, 8
test ebx, ebx
je 0x414130
mov eax, dword [0x100a98f4]
mov edx, dword [eax + 0xc]
mov ecx, 0x100a98f4
call edx
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0xf0], 7
push 0xfb1
push 0x10090070
lea edi, [esp + 0x2c]
call fcn.004244c0
mov edi, dword [esp + 0x2c]
add esp, 8
push edi
push ebx
call fcn.00424eb0
mov dword [ebx + 0x40], 0xe59422
mov dword [ebx + 0x44], 0xffbc5d
mov byte [esp + 0xf0], 1
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414130
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x18]
mov edi, dword [ebp + 8]
inc ecx
sar eax, 2
xor ebx, ebx
mov dword [esp + 0x18], ecx
cmp ecx, eax
jb 0x413e51
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x54]
sub edx, dword [esp + 0x50]
test edx, 0xfffffffc
je 0x41417e
movzx edx, byte [esi + 0x3c]
lea eax, [esp + 0x44]
push eax
inc ecx
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push edi
call fcn.00415480
mov byte [esp + 0xf0], 9
mov eax, dword [esp + 0x50]
cmp eax, ebx
je 0x414197
push eax
call 0x4628b0
add esp, 4
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov byte [esp + 0xf0], bl
mov eax, dword [esp + 0x44]
push eax
call 0x4628b0
add esp, 4
mov dword [esp + 0xf0], 0xb
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x4141d3
push eax
call 0x4628b0
add esp, 4
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0xf0], 0xffffffff
mov ecx, dword [esp + 0x2c]
push ecx
call 0x4628b0
add esp, 4
mov ecx, dword [esp + 0xe8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [edi]
jmp 0x41409e