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

Disassembly:
sub esp, 0x44
mov ecx, dword [esp + 0x58]
push ebx
movzx ebx, byte [esp + 0x54]
mov eax, ebx
mov dword [esp + 8], ebx
cdq
idiv dword [ecx + 0xab4]
mov ecx, dword [0x972ec4]
mov edx, dword [esp + 0x5c]
push ebp
movzx ebp, ax
mov eax, dword [0x972ef0]
inc eax
mov dword [0x972ef0], eax
or eax, 0x7f6
movzx eax, ax
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x54]
push edi
mov edi, dword [0x972ee8]
movzx eax, byte [ebx + esi]
mov ebx, dword [0x972eb0]
mov dword [esp + 0x2c], eax
movzx eax, word [ecx + edi*2]
mov dword [esp + 0x20], eax
mov esi, dword [esp + 0x20]
imul eax, ebx, 0xc
xor esi, dword [eax + edx]
inc edi
mov eax, dword [0x972f00]
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x4c], eax
mov eax, dword [0x972ec0]
mov dword [0x972ee8], edi
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x64]
movzx edx, word [edx + eax*4]
mov dword [esp + 0x44], edx
mov edx, 0x534
sub edx, eax
mov al, byte [esi + 0x967]
mov esi, dword [esp + 0x58]
mov byte [esp + 0x13], al
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], edx
movzx ecx, word [ecx + eax*2]
imul eax, eax, 3
mov dword [esp + 0x30], ecx
mov ecx, dword [0x972ec8]
movzx eax, byte [eax + esi]
xor eax, dword [0x972ecc]
mov esi, dword [0x972eb4]
mov dword [esp + 0x18], eax
mov eax, dword [0x972ed4]
inc eax
mov dword [0x972ed4], eax
mov dword [esp + 0x34], eax
mov eax, ebx
xor eax, 0x7d8
mov dword [esp + 0x48], eax
mov eax, dword [ecx + esi*4]
cdq
idiv dword [ecx + 0x770]
mov ecx, dword [esp + 0x5c]
inc esi
mov dword [esp + 0x50], eax
xor edx, edx
mov dword [0x972eb4], esi
mov si, word [0x972ed8]
movzx eax, word [ecx + 0x1bb2]
add eax, edi
inc si
mov dword [esp + 0x38], eax
mov eax, 0x1d29
mov word [0x972ed8], si
movzx ecx, word [ecx + 0x5b2]
div ecx
movzx eax, si
mov esi, dword [esp + 0x58]
mov dword [esp + 0x28], edx
movzx edi, byte [esi + eax*2]
xor edx, edx
mov eax, dword [esp + 0x5c]
mov esi, ebp
push 0x1146
movzx ecx, word [eax + esi*2 + 2]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + esi*4]
xor eax, dword [esp + 0x70]
div ecx
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
or dword [edx + ecx*4 + 0x18], eax
mov eax, dword [esp + 0x6c]
mov ecx, dword [0x972eb0]
mov edx, dword [esp + 0x5c]
mov al, byte [eax + esi*4]
xor al, byte [0x972ef4]
mov esi, dword [esp + 0x18]
mov byte [esp + 0x16], al
mov eax, dword [esp + 0x28]
mov eax, dword [ebx + eax*4]
movzx ebx, word [edi + esi*2]
movzx esi, byte [edx + 0x11dc]
mov dword [esp + 0x44], eax
mov eax, dword [0x972ec8]
mov al, byte [eax + ecx*4]
or al, byte [edx + 0x15c4]
mov ecx, dword [esp + 0x20]
mov byte [esp + 0x40], al
add ecx, 0xffff
lea eax, [ebp + 1]
movzx edi, cx
movzx ebp, ax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x20], ecx
imul edi, dword [eax + ebp*4]
mov eax, dword [0x972ee0]
mov ecx, eax
dec eax
mov dword [0x972ee0], eax
mov eax, 0x1473
cdq
idiv dword [esp + 0x70]
movzx eax, ax
push eax
push ecx
push 0x1100
push esi
push edi
push ebx
push 0x12e9
push dword [0x972eb4]
mov dword [esp + 0x5c], eax
push dword [esp + 0x60]
push dword [esp + 0x68]
call fcn.004083ca
mov ecx, dword [0x972ef4]
mov esi, dword [esp + 0x84]
mov edi, dword [esp + 0x70]
mov ebx, dword [esp + 0x74]
mov byte [ecx + esi], al
dec dword [0x972ef4]
mov ecx, dword [esp + 0x90]
mov al, byte [ecx + ebp]
sub al, 6
mov byte [ecx + ebp + 8], al
mov eax, dword [esp + 0x48]
add eax, 0xffffe52d
movzx eax, ax
movzx ecx, ax
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x48], ecx
mov eax, dword [eax]
mov edi, dword [edi + eax*4]
mov eax, dword [esp + 0x5c]
and edi, dword [eax + ecx*4]
imul ebp, dword [esp + 0x40], 0xc
mov eax, dword [ebx + ecx*4]
mov dword [esp + 0x70], ebp
mov ecx, dword [esp + 0x78]
xor edx, edx
mov esi, dword [0x972ef4]
div dword [ecx + ebp]
mov ebp, dword [esp + 0x88]
mov eax, dword [esp + 0x64]
mov byte [esp + 0x78], dl
xor edx, edx
movzx ecx, word [ebp + esi*2]
div ecx
mov eax, dword [esp + 0x48]
movzx eax, word [ebp + eax*2]
mov ebp, dword [esp + 0x50]
sub esi, eax
mov eax, dword [ebx + ebp*4]
mov ebx, dword [esp + 0x7c]
and eax, ebx
push eax
movzx eax, byte [esp + 0x42]
push eax
push dword [0x972ec0]
push dword [0x972ed4]
push 0x87e
push dword [esp + 0xac]
push 0x11be
push esi
push edx
push dword [esp + 0x9c]
push edi
call fcn.004083ca
mov ecx, dword [esp + 0x74]
add esp, 0x58
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x58]
push dword [esp + 0x6c]
mov byte [ecx + edi], al
movzx ecx, word [esi + edx*2]
movzx eax, word [0x972eb4]
imul ecx, eax
mov eax, dword [esp + 0x68]
mov word [esi + edx*2], cx
xor edx, edx
movzx esi, byte [eax + ebp]
mov ecx, dword [0x972f00]
mov eax, dword [0x972ed0]
div ecx
inc ecx
push eax
push esi
push ebx
mov dword [0x972f00], ecx
call fcn.0040aa15
mov ecx, dword [0x972ef4]
add esp, 0x10
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x68]
mov word [esi + ecx*2], ax
mov ecx, dword [0x972ee0]
cmp ecx, dword [ebx + 0x353c]
jl 0x40b353
movzx eax, byte [edi + 0x19db]
cmp ecx, eax
je 0x40b353
movzx ecx, word [esi + 0x31e6]
imul ecx, dword [ebx + 0x2490]
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x14]
mov edx, dword [eax]
mov eax, dword [0x972eec]
movzx eax, byte [esi + eax]
or ecx, eax
mov eax, dword [esp + 0x20]
xor dword [eax + edx*4], ecx
mov si, word [0x972ed8]
mov ecx, dword [esp + 0x5c]
inc si
mov edx, dword [0x972ed4]
mov word [0x972ed8], si
imul eax, ebp, 6
mov ebp, dword [esp + 0x34]
movzx ecx, word [eax + ecx]
mov eax, dword [0x972efc]
and ecx, dword [eax + 0x4fd4]
movzx eax, si
sub ecx, eax
add dword [ebx + edx*4 + 0x80], ecx
mov eax, dword [0x972ee8]
add eax, 0xc
imul edx, dword [esp + 0x1c], 0xc
imul eax, eax, 3
mov byte [eax + edi], 0xad
inc dword [0x972ee8]
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
mov eax, dword [0x972eec]
movzx eax, byte [ecx + eax]
mov ecx, dword [esp + 0x18]
mov ecx, dword [edx + ecx]
mov edx, dword [esp + 0x44]
sub ecx, eax
mov eax, dword [esp + 0x34]
add ecx, 0x173a
mov dword [edx + eax + 0x14], ecx
movzx eax, byte [esp + 0x13]
imul esi, eax, 3
mov eax, 0x199a
cdq
idiv dword [0x972eb0]
mov ecx, dword [0x972ef4]
movzx eax, word [0x972ed8]
add eax, edx
xor edx, edx
div dword [ebp + ecx*4]
movzx eax, byte [esi + edi]
mov ebp, dword [esp + 0x24]
movzx ecx, dl
xor edx, edx
imul ecx, eax
mov byte [esi + edi], cl
mov eax, dword [0x972ee8]
mov ecx, dword [esp + 0x18]
add eax, eax
inc dword [0x972ee0]
push dword [0x972ee4]
mov eax, dword [ecx + eax*8]
and eax, dword [ebx + ebp*4]
push eax
mov eax, dword [esp + 0x64]
movzx ecx, word [eax + ebp*2]
mov eax, 0x323
div ecx
push eax
imul eax, dword [esp + 0x20], 0xadf
push eax
call fcn.0040aa15
add esp, 0x10
jmp 0x40b3a3
mov esi, dword [esp + 0x64]
mov eax, ebp
shl eax, 4
or ebp, 0x17a3
xor dword [eax + 0x846], ebp
mov al, byte [esp + 0x60]
inc al
movzx edx, al
mov eax, dword [esp + 0x40]
mov ecx, edx
or ecx, dword [0x972ecc]
dec eax
movzx eax, ax
movzx eax, byte [eax + esi]
imul eax, ecx
mov ecx, dword [0x972ec4]
movzx ecx, word [ecx + edx*2]
xor edx, edx
div ecx
xor edx, edx
div dword [0x972eb4]
mov dword [0x972eb4], eax
pop edi
pop esi
pop ebp
mov eax, 0x115d
pop ebx
add esp, 0x44
ret