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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x432ef8
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x43e524]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
mov eax, dword [0x43e524]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, edx
mov ebx, ecx
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x88888889
imul ecx
add edx, ecx
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x10], eax
mov eax, 0x2aaaaaab
imul ecx
mov ecx, dword [esp + 0x10]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x2c], esi
cmp ecx, eax
je 0x41389b
xor al, al
jmp 0x413be1
push 0xffffffffffffffff
push 0
push ebx
lea ecx, [esp + 0x78]
mov dword [esp + 0x90], 0xf
mov dword [esp + 0x8c], 0
mov byte [esp + 0x7c], 0
call fcn.004013f0
push 0x2f
push 1
lea ecx, [esp + 0x74]
mov dword [esp + 0xa0], 0
call fcn.00407710
mov ebx, dword [esi + 0xc]
cmp ebx, dword [esi + 0x10]
jbe 0x4138e9
call fcn.0041de6c
mov eax, dword [esi]
mov esi, dword [edi + 0xc]
mov dword [esp + 0x20], eax
cmp esi, dword [edi + 0x10]
jbe 0x413900
call fcn.0041de6c
mov eax, dword [esp + 0x20]
mov ecx, dword [edi]
add ebx, 0x34
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], ebx
mov edi, dword [esp + 0x2c]
mov ebx, dword [edi + 0x10]
cmp dword [edi + 0xc], ebx
jbe 0x413926
call fcn.0041de6c
mov eax, dword [esp + 0x20]
mov edi, dword [edi]
xor esi, esi
cmp eax, esi
je 0x413932
cmp eax, edi
je 0x41393b
call fcn.0041de6c
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x14]
add edi, 0xffffffcc
cmp edi, ebx
je 0x413bc8
cmp eax, esi
jne 0x413a7d
call fcn.0041de6c
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x413963
call fcn.0041de6c
mov edx, dword [esp + 0x14]
add edx, 0xffffffcc
push edx
lea eax, [esp + 0x70]
push eax
lea edi, [esp + 0x58]
call fcn.00403700
add esp, 8
mov dword [esp + 0x10], esi
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], esi
mov byte [esp + 0x38], 0
mov ebx, edi
mov byte [esp + 0x98], 2
call fcn.00406ee0
test al, al
je 0x413b6e
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x413a84
call fcn.0041de6c
xor eax, eax
mov esi, dword [esp + 0x1c]
cmp esi, dword [eax + 0x10]
jb 0x4139c9
call fcn.0041de6c
lea ecx, [esp + 0x50]
push esi
push ecx
call fcn.004074e0
add esp, 8
test al, al
je 0x413b42
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x58]
push ecx
call fcn.004091c0
add esp, 0xc
test al, al
je 0x413b58
mov edi, dword [esp + 0x20]
test edi, edi
jne 0x413a8b
call fcn.0041de6c
xor eax, eax
mov ebx, dword [esp + 0x14]
add ebx, 0xffffffcc
mov dword [esp + 0x30], ebx
cmp ebx, dword [eax + 0x10]
jb 0x413a26
call fcn.0041de6c
mov esi, dword [esp + 0x14]
mov edx, dword [esi - 0x18]
cmp edx, dword [esp + 0x10]
jne 0x413b6e
test edi, edi
jne 0x413a8f
call fcn.0041de6c
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x413a4c
call fcn.0041de6c
mov ecx, dword [esp + 0x38]
mov edx, 0x10
cmp dword [esp + 0x4c], edx
jae 0x413a5f
lea ecx, [esp + 0x38]
mov edi, dword [esi]
mov eax, edi
cmp eax, edi
jae 0x413a67
mov ebx, dword [esp + 0x48]
mov eax, edi
cmp edi, ebx
jb 0x413a73
mov eax, ebx
cmp dword [esi + 4], edx
jb 0x413a93
mov edx, dword [esi - 0x10]
jmp 0x413a96
mov eax, dword [eax]
jmp 0x413959
mov eax, dword [eax]
jmp 0x4139bb
mov eax, dword [edi]
jmp 0x413a11
mov eax, dword [edi]
jmp 0x413a42
lea edx, [esi - 0x10]
call fcn.00403d40
test eax, eax
jne 0x413b6e
cmp edi, ebx
jb 0x413b6e
cmp edi, ebx
setne al
test eax, eax
jne 0x413b6e
mov edi, 0x10
cmp dword [esp + 0x4c], edi
jb 0x413ad0
mov eax, dword [esp + 0x38]
push eax
call fcn.0041dbb6
add esp, 4
mov byte [esp + 0x98], 0
cmp dword [esp + 0x68], edi
jb 0x413aeb
mov ecx, dword [esp + 0x54]
push ecx
call fcn.0041dbb6
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x413b3a
call fcn.0041de6c
xor eax, eax
mov edx, dword [esp + 0x30]
cmp edx, dword [eax + 0x10]
jb 0x413b08
call fcn.0041de6c
mov eax, dword [esp + 0x18]
add esi, 0x3c
mov dword [esp + 0x14], esi
test eax, eax
jne 0x413b3e
call fcn.0041de6c
xor eax, eax
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [eax + 0x10]
jb 0x413b2c
call fcn.0041de6c
add dword [esp + 0x1c], 0x18
mov eax, dword [esp + 0x20]
jmp 0x413911
mov eax, dword [eax]
jmp 0x413afa
mov eax, dword [eax]
jmp 0x413b1e
mov byte [esp + 0x98], 1
cmp dword [esp + 0x4c], 0x10
jb 0x413b8a
mov eax, dword [esp + 0x38]
push eax
jmp 0x413b82
mov byte [esp + 0x98], 1
cmp dword [esp + 0x4c], 0x10
jb 0x413b8a
mov ecx, dword [esp + 0x38]
push ecx
jmp 0x413b82
mov byte [esp + 0x98], 1
cmp dword [esp + 0x4c], 0x10
jb 0x413b8a
mov edx, dword [esp + 0x38]
push edx
call fcn.0041dbb6
add esp, 4
cmp dword [esp + 0x68], 0x10
jb 0x413b9b
mov eax, dword [esp + 0x54]
mov dword [esp + 0x10], eax
jmp 0x413ba3
lea ecx, [esp + 0x54]
mov dword [esp + 0x10], ecx
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x24]
call fcn.0041da38
push 0x43a894
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], vtable.std::bad_exception.0
call fcn.0042083b
cmp dword [esp + 0x84], 0x10
jb 0x413bdf
mov ecx, dword [esp + 0x70]
push ecx
call fcn.0041dbb6
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.0041d9bb
mov esp, ebp
pop ebp
ret