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

Disassembly:
push 0xffffffffffffffff
push 0x48eabb
mov eax, dword fs:[0]
push eax
sub esp, 0x180
mov eax, dword [0x4ae7cc]
xor eax, esp
mov dword [esp + 0x17c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ae7cc]
xor eax, esp
push eax
lea eax, [esp + 0x194]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1a4]
mov edi, edx
mov dword [esp + 0x34], eax
mov esi, ecx
mov ecx, edi
sub ecx, esi
mov eax, 0x2fa0be83
imul ecx
mov ecx, dword [esp + 0x1a8]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
imul ebx, ebx, 0xac
push ecx
add ebx, esi
lea eax, [edi - 0xac]
push ebx
mov ecx, esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], edi
call fcn.0040e270
add esp, 8
lea ebp, [ebx + 0xac]
cmp esi, ebx
jae 0x40d74a
lea esp, [esp]
lea edi, [ebx - 0xac]
mov esi, ebx
mov dword [esp + 0x1c], edi
call fcn.00409c20
test al, al
jne 0x40d74a
mov esi, edi
mov edi, ebx
call fcn.00409c20
test al, al
jne 0x40d74a
mov ebx, esi
cmp dword [esp + 0x28], ebx
jb 0x40d720
cmp ebp, dword [esp + 0x24]
jae 0x40d776
mov esi, ebx
mov edi, ebp
call fcn.00409c20
test al, al
jne 0x40d776
mov esi, ebp
mov edi, ebx
call fcn.00409c20
test al, al
jne 0x40d776
add ebp, 0xac
cmp ebp, dword [esp + 0x24]
jb 0x40d750
mov eax, ebp
mov esi, ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], esi
cmp eax, dword [esp + 0x24]
jae 0x40d904
lea edx, [eax + 0x38]
mov dword [esp + 0x14], edx
jmp 0x40d799
mov eax, dword [esp + 0x18]
mov esi, eax
mov edi, ebx
call fcn.00409c20
test al, al
jne 0x40d8d7
mov edi, dword [esp + 0x18]
mov esi, ebx
call fcn.00409c20
test al, al
jne 0x40d8fc
lea eax, [esp + 0x38]
mov edi, ebp
push eax
add ebp, 0xac
call fcn.0040ac10
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
push 0
push ecx
mov ecx, edi
mov dword [esp + 0x1a8], 0
call fcn.00403160
mov esi, dword [esp + 0x14]
push 0xffffffffffffffff
lea eax, [esi - 0x1c]
push 0
push eax
lea ecx, [edi + 0x1c]
call fcn.00403160
push 0xffffffffffffffff
push 0
push esi
lea ecx, [edi + 0x38]
call fcn.00403160
push 0xffffffffffffffff
lea eax, [esi + 0x1c]
push 0
push eax
lea ecx, [edi + 0x54]
call fcn.00403160
push 0xffffffffffffffff
lea eax, [esi + 0x38]
push 0
push eax
lea ecx, [edi + 0x70]
call fcn.00403160
push 0xffffffffffffffff
lea eax, [esi + 0x54]
push 0
push eax
lea ecx, [edi + 0x8c]
call fcn.00403160
mov dl, byte [esi + 0x70]
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x40]
push eax
mov byte [edi + 0xa8], dl
call fcn.00403160
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esi - 0x1c]
call fcn.00403160
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x78]
push edx
mov ecx, esi
call fcn.00403160
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x94]
push eax
lea ecx, [esi + 0x1c]
call fcn.00403160
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0xb0]
push ecx
lea ecx, [esi + 0x38]
call fcn.00403160
push 0xffffffffffffffff
push 0
lea edx, [esp + 0xcc]
push edx
lea ecx, [esi + 0x54]
call fcn.00403160
mov al, byte [esp + 0xe0]
lea ecx, [esp + 0x38]
push ecx
mov byte [esi + 0x70], al
mov dword [esp + 0x1a0], 0xffffffff
call fcn.00409e90
jmp 0x40d8db
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add eax, 0xac
add esi, 0xac
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], esi
cmp eax, dword [esp + 0x24]
jb 0x40d795
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
cmp esi, dword [esp + 0x28]
jbe 0x40da8c
add esi, 0xffffff8c
mov dword [esp + 0x14], esi
mov edi, dword [esp + 0x14]
add edi, 0xffffffc8
mov esi, ebx
call fcn.00409c20
mov esi, dword [esp + 0x14]
test al, al
jne 0x40da5f
add esi, 0xffffffc8
mov edi, ebx
call fcn.00409c20
test al, al
jne 0x40da80
lea edx, [esp + 0x38]
sub ebx, 0xac
push edx
mov edi, ebx
call fcn.0040ac10
mov eax, dword [esp + 0x14]
push 0xffffffffffffffff
add eax, 0xffffffc8
push 0
push eax
mov ecx, ebx
mov dword [esp + 0x1a8], 1
mov dword [esp + 0x2c], eax
call fcn.00403160
mov esi, dword [esp + 0x14]
push 0xffffffffffffffff
push 0
lea edi, [esi - 0x1c]
push edi
lea ecx, [ebx + 0x1c]
call fcn.00403160
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebx + 0x38]
call fcn.00403160
push 0xffffffffffffffff
lea eax, [esi + 0x1c]
push 0
push eax
lea ecx, [ebx + 0x54]
call fcn.00403160
push 0xffffffffffffffff
lea eax, [esi + 0x38]
push 0
push eax
lea ecx, [ebx + 0x70]
call fcn.00403160
push 0xffffffffffffffff
lea eax, [esi + 0x54]
push 0
push eax
lea ecx, [ebx + 0x8c]
call fcn.00403160
mov al, byte [esi + 0x70]
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x2c]
mov byte [ebx + 0xa8], al
call fcn.00403160
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x5c]
push edx
mov ecx, edi
call fcn.00403160
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x78]
push eax
mov ecx, esi
call fcn.00403160
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x94]
push ecx
lea ecx, [esi + 0x1c]
call fcn.00403160
push 0xffffffffffffffff
push 0
lea edx, [esp + 0xb0]
push edx
lea ecx, [esi + 0x38]
call fcn.00403160
push 0xffffffffffffffff
push 0
lea eax, [esp + 0xcc]
push eax
lea ecx, [esi + 0x54]
call fcn.00403160
mov cl, byte [esp + 0xe0]
lea edx, [esp + 0x38]
push edx
mov byte [esi + 0x70], cl
mov dword [esp + 0x1a0], 0xffffffff
call fcn.00409e90
mov eax, dword [esp + 0x1c]
sub eax, 0xac
sub esi, 0xac
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], esi
cmp dword [esp + 0x28], eax
jb 0x40d915
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
cmp esi, dword [esp + 0x28]
jne 0x40dd1b
cmp eax, dword [esp + 0x24]
je 0x40e0dd
cmp ebp, eax
je 0x40dbbf
lea eax, [esp + 0x38]
push eax
mov edi, ebx
call fcn.0040ac10
push 0xffffffffffffffff
push 0
push ebp
mov ecx, ebx
mov dword [esp + 0x1a8], 2
call fcn.00403160
push 0xffffffffffffffff
push 0
lea edi, [ebp + 0x1c]
push edi
lea ecx, [ebx + 0x1c]
call fcn.00403160
push 0xffffffffffffffff
lea eax, [ebp + 0x38]
push 0
push eax
lea ecx, [ebx + 0x38]
call fcn.00403160
push 0xffffffffffffffff
lea eax, [ebp + 0x54]
push 0
push eax
lea ecx, [ebx + 0x54]
call fcn.00403160
push 0xffffffffffffffff
lea eax, [ebp + 0x70]
push 0
push eax
lea ecx, [ebx + 0x70]
call fcn.00403160
push 0xffffffffffffffff
lea eax, [ebp + 0x8c]
push 0
push eax
lea ecx, [ebx + 0x8c]
call fcn.00403160
mov cl, byte [ebp + 0xa8]
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x40]
mov byte [ebx + 0xa8], cl
push edx
mov ecx, ebp
call fcn.00403160
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x5c]
push eax
mov ecx, edi
call fcn.00403160
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x78]
push ecx
lea ecx, [ebp + 0x38]
call fcn.00403160
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x94]
push edx
lea ecx, [ebp + 0x54]
call fcn.00403160
push 0xffffffffffffffff
push 0
lea eax, [esp + 0xb0]
push eax
lea ecx, [ebp + 0x70]
call fcn.00403160
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0xcc]
push ecx
lea ecx, [ebp + 0x8c]
call fcn.00403160
mov dl, byte [esp + 0xe0]
mov byte [ebp + 0xa8], dl
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x1a0], 0xffffffff
call fcn.00409e90
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], eax
mov edi, ebx
lea ecx, [esp + 0x38]
add eax, 0xac
push ecx
add ebp, 0xac
mov dword [esp + 0x18], edi
add ebx, 0xac
mov dword [esp + 0x1c], eax
call fcn.0040ac10
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push 0
push edi
mov dword [esp + 0x1a8], 3
call fcn.00403160
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
lea eax, [edi + 0x1c]
push 0
push eax
add ecx, 0x1c
call fcn.00403160
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
lea eax, [edi + 0x38]
push 0
push eax
add ecx, 0x38
call fcn.00403160
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
lea eax, [edi + 0x54]
push 0
push eax
add ecx, 0x54
call fcn.00403160
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
lea eax, [edi + 0x70]
push 0
push eax
add ecx, 0x70
call fcn.00403160
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
lea eax, [edi + 0x8c]
push 0
push eax
add ecx, 0x8c
call fcn.00403160
mov dl, byte [edi + 0xa8]
mov eax, dword [esp + 0x14]
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x40]
push ecx
mov ecx, edi
mov byte [eax + 0xa8], dl
call fcn.00403160
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x5c]
push edx
lea ecx, [edi + 0x1c]
call fcn.00403160
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x78]
push eax
lea ecx, [edi + 0x38]
call fcn.00403160
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x94]
push ecx
lea ecx, [edi + 0x54]
call fcn.00403160
push 0xffffffffffffffff
push 0
lea edx, [esp + 0xb0]
push edx
lea ecx, [edi + 0x70]
call fcn.00403160
push 0xffffffffffffffff
push 0
lea eax, [esp + 0xcc]
push eax
lea ecx, [edi + 0x8c]
call fcn.00403160
mov cl, byte [esp + 0xe0]
lea edx, [esp + 0x38]
push edx
mov byte [edi + 0xa8], cl
mov dword [esp + 0x1a0], 0xffffffff
call fcn.00409e90
mov eax, dword [esp + 0x18]
jmp 0x40d782
sub esi, 0xac
mov dword [esp + 0x1c], esi
cmp eax, dword [esp + 0x24]
jne 0x40df8b
sub ebx, 0xac
cmp esi, ebx
je 0x40de54
lea eax, [esp + 0x38]
push eax
mov edi, esi
call fcn.0040ac10
push 0xffffffffffffffff
push 0
push ebx
mov ecx, esi
mov dword [esp + 0x1a8], 4
call fcn.00403160
push 0xffffffffffffffff
push 0
lea edi, [ebx + 0x1c]
push edi
lea ecx, [esi + 0x1c]
call fcn.00403160
push 0xffffffffffffffff
lea eax, [ebx + 0x38]
push 0
push eax
lea ecx, [esi + 0x38]
call fcn.00403160
push 0xffffffffffffffff
lea eax, [ebx + 0x54]
push 0
push eax
lea ecx, [esi + 0x54]
call fcn.00403160
push 0xffffffffffffffff
lea eax, [ebx + 0x70]
push 0
push eax
lea ecx, [esi + 0x70]
call fcn.00403160
push 0xffffffffffffffff
lea eax, [ebx + 0x8c]
push 0
push eax
lea ecx, [esi + 0x8c]
call fcn.00403160
mov cl, byte [ebx + 0xa8]
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x40]
mov byte [esi + 0xa8], cl
push edx
mov ecx, ebx
call fcn.00403160
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x5c]
push eax
mov ecx, edi
call fcn.00403160
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x78]
push ecx
lea ecx, [ebx + 0x38]
call fcn.00403160
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x94]
push edx
lea ecx, [ebx + 0x54]
call fcn.00403160
push 0xffffffffffffffff
push 0
lea eax, [esp + 0xb0]
push eax
lea ecx, [ebx + 0x70]
call fcn.00403160
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0xcc]
push ecx
lea ecx, [ebx + 0x8c]
call fcn.00403160
mov dl, byte [esp + 0xe0]
mov byte [ebx + 0xa8], dl
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x1a0], 0xffffffff
call fcn.00409e90
lea ecx, [esp + 0x38]
push ecx
mov edi, ebx
sub ebp, 0xac
call fcn.0040ac10
push 0xffffffffffffffff
push 0
push ebp
mov ecx, ebx
mov dword [esp + 0x1a8], 5
call fcn.00403160
push 0xffffffffffffffff
push 0
lea edi, [ebp + 0x1c]
push edi
lea ecx, [ebx + 0x1c]
call fcn.00403160
push 0xffffffffffffffff
lea eax, [ebp + 0x38]
push 0
push eax
lea ecx, [ebx + 0x38]
mov dword [esp + 0x2c], eax
call fcn.00403160
push 0xffffffffffffffff
lea eax, [ebp + 0x54]
push 0
push eax
lea ecx, [ebx + 0x54]
mov dword [esp + 0x20], eax
call fcn.00403160
push 0xffffffffffffffff
lea eax, [ebp + 0x70]
push 0
push eax
lea ecx, [ebx + 0x70]
mov dword [esp + 0x3c], eax
call fcn.00403160
push 0xffffffffffffffff
lea eax, [ebp + 0x8c]
push 0
push eax
lea ecx, [ebx + 0x8c]
mov dword [esp + 0x38], eax
call fcn.00403160
mov dl, byte [ebp + 0xa8]
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x40]
push eax
mov ecx, ebp
mov byte [ebx + 0xa8], dl
call fcn.00403160
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x5c]
push ecx
mov ecx, edi
call fcn.00403160
mov ecx, dword [esp + 0x20]
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x78]
push edx
call fcn.00403160
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x94]
push eax
call fcn.00403160
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0xb0]
push ecx
mov ecx, dword [esp + 0x3c]
call fcn.00403160
push 0xffffffffffffffff
push 0
lea edx, [esp + 0xcc]
mov ecx, dword [esp + 0x34]
push edx
call fcn.00403160
mov al, byte [esp + 0xe0]
lea ecx, [esp + 0x38]
push ecx
mov byte [ebp + 0xa8], al
mov dword [esp + 0x1a0], 0xffffffff
call fcn.00409e90
mov eax, dword [esp + 0x18]
jmp 0x40d782
lea edx, [esp + 0xe4]
push edx
mov edi, eax
call fcn.0040ac10
mov edi, dword [esp + 0x18]
push 0xffffffffffffffff
push 0
push esi
mov ecx, edi
mov dword [esp + 0x1a8], 6
call fcn.00403160
push 0xffffffffffffffff
lea eax, [esi + 0x1c]
push 0
push eax
lea ecx, [edi + 0x1c]
mov dword [esp + 0x38], eax
call fcn.00403160
push 0xffffffffffffffff
lea eax, [esi + 0x38]
push 0
push eax
lea ecx, [edi + 0x38]
mov dword [esp + 0x3c], eax
call fcn.00403160
push 0xffffffffffffffff
lea eax, [esi + 0x54]
push 0
push eax
lea ecx, [edi + 0x54]
mov dword [esp + 0x2c], eax
call fcn.00403160
push 0xffffffffffffffff
lea eax, [esi + 0x70]
push 0
push eax
lea ecx, [edi + 0x70]
mov dword [esp + 0x20], eax
call fcn.00403160
push 0xffffffffffffffff
lea eax, [esi + 0x8c]
push 0
push eax
lea ecx, [edi + 0x8c]
mov dword [esp + 0x24], eax
call fcn.00403160
mov al, byte [esi + 0xa8]
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0xec]
push ecx
mov ecx, esi
mov byte [edi + 0xa8], al
call fcn.00403160
mov ecx, dword [esp + 0x2c]
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x108]
push edx
call fcn.00403160
mov ecx, dword [esp + 0x30]
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x124]
push eax
call fcn.00403160
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x140]
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.00403160
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x15c]
push edx
call fcn.00403160
push 0xffffffffffffffff
push 0
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x178]
push eax
call fcn.00403160
mov cl, byte [esp + 0x18c]
lea edx, [esp + 0xe4]
push edx
mov byte [esi + 0xa8], cl
mov dword [esp + 0x1a0], 0xffffffff
call fcn.00409e90
add edi, 0xac
mov dword [esp + 0x18], edi
mov eax, edi
jmp 0x40d782
mov eax, dword [esp + 0x34]
mov dword [eax], ebx
mov dword [eax + 4], ebp
mov ecx, dword [esp + 0x194]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x17c]
xor ecx, esp
call fcn.00475410
add esp, 0x18c
ret