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

Disassembly:
sub esp, 0x3bc
push ebx
push ebp
push esi
mov dword [esp + 0x24], ecx
push edi
lea ecx, [esp + 0x14]
call fcn.0042ef2b
mov edi, eax
mov dword [esp + 0x10], edi
test edi, edi
je 0x40b0e0
mov ebp, dword [esp + 0x14]
test ebp, ebp
je 0x40b0d9
mov ecx, ebp
call fcn.0042b379
mov dword [esp + 0x18], eax
test eax, eax
je 0x40b0d9
xor ebx, ebx
mov esi, ebx
mov dword [esp + 0x14], esi
cmp ebp, 1
jbe 0x40ae52
lea ecx, [esp + 0x48]
call fcn.0042e948
test al, al
je 0x40ae52
test ebp, ebp
je 0x40ae52
add edi, 0xf
push 0x14
lea eax, [esp + 0x5c]
push edi
push eax
call dword [0xfe8014fc]
add esp, 0xc
test eax, eax
je 0x40ae4a
inc esi
add edi, 0x1db
cmp esi, ebp
jb 0x40ae26
mov esi, ebx
jmp 0x40ae4e
mov dword [esp + 0x14], esi
mov edi, dword [esp + 0x10]
push ebx
push 0xcc
xor dl, dl
lea ecx, [esp + 0x74]
call fcn.0040b27b
lea eax, [ebp*2]
mov byte [esp + 0x6d], 4
lea ecx, [eax + eax]
mov eax, ebx
mov dword [esp + 0x1c], eax
test ecx, ecx
je 0x40b0c3
add eax, esi
xor edx, edx
div ebp
xor eax, eax
push 6
mov word [esp + 0x30], ax
pop ecx
mov esi, edx
imul esi, esi, 0x1db
add esi, edi
lea edi, [esp + 0x2e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
movzx ecx, word [esi + 0x27]
mov dword [esp + 0x24], edx
test cx, cx
jne 0x40aed3
cmp word [esi + 0x39], bx
jne 0x40aed3
mov edi, dword [esp + 0x18]
cmp byte [edx + edi], bl
jne 0x40b05a
lea ecx, [esi + 0xf]
mov byte [edx + edi], 1
call fcn.0040aad0
jmp 0x40b05a
mov eax, dword [esp + 0x1c]
xor edx, edx
lea edi, [ebp*2]
div edi
cmp edx, ebp
jae 0x40af12
test cx, cx
je 0x40b05a
push 2
pop eax
mov word [esp + 0x2c], ax
mov ax, word [esi + 0x27]
movzx ecx, byte [esi + 0x28]
shl ax, 8
or cx, ax
lea eax, [esi + 0x23]
push 4
push eax
lea eax, [esp + 0x38]
jmp 0x40af3d
cmp word [esi + 0x39], bx
je 0x40b05a
push 0x17
pop eax
mov word [esp + 0x2c], ax
mov ax, word [esi + 0x39]
movzx ecx, byte [esi + 0x3a]
shl ax, 8
or cx, ax
lea eax, [esi + 0x29]
push 0x10
push eax
lea eax, [esp + 0x3c]
push eax
mov word [esp + 0x3a], cx
call dword [0xfe8014f4]
movzx ecx, word [esp + 0x38]
add esp, 0xc
push 1
call fcn.00432e5b
movzx eax, al
push eax
lea ecx, [esp + 0xa0]
call fcn.004140c5
mov ecx, dword [esp + 0x28]
push 3
push dword [ecx]
lea eax, [esi + 0xf]
push eax
lea ecx, [esp + 0xa4]
mov dword [esp + 0x2c], eax
call fcn.00414136
lea eax, [esp + 0x2c]
push dword [esp + 0x3d4]
lea ecx, [esp + 0x9c]
push 0x3a98
push eax
call fcn.00432f21
test al, al
je 0x40afed
push dword [esp + 0x3d4]
mov edi, 0x7530
push edi
push 0x2c
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0xa8]
call fcn.004332d9
test al, al
je 0x40afed
push dword [esp + 0x3d4]
mov ecx, dword [esp + 0x3d4]
push edi
mov eax, dword [ecx]
lea edx, [esp + 0xa0]
push edx
call dword [eax + 4]
test al, al
jne 0x40b07e
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
cmp byte [esi + edi], bl
jne 0x40b04e
call fcn.00423d3e
test al, al
je 0x40b04e
mov byte [esi + edi], 1
mov esi, dword [esp + 0x20]
mov dl, 1
mov ecx, esi
call fcn.0040ab7f
lea ecx, [esp + 0x48]
mov dword [esp + 0x20], ebx
call fcn.0042e948
test al, al
je 0x40b045
push 0x14
lea eax, [esp + 0x5c]
push esi
push eax
call dword [0xfe8014fc]
add esp, 0xc
test eax, eax
jne 0x40b045
push ebx
push 0x66
xor edx, edx
pop ecx
call fcn.0042e59e
lea ecx, [esp + 0x20]
call fcn.0042e47a
lea ecx, [esp + 0x98]
call fcn.00414114
mov eax, dword [esp + 0x1c]
lea edx, [ebp*2]
inc eax
lea ecx, [edx + edx]
mov dword [esp + 0x1c], eax
cmp eax, ecx
jae 0x40b0c3
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
jmp 0x40ae80
add esi, 0xf
xor dl, dl
mov ecx, esi
call fcn.0040ab7f
push 0x24
lea eax, [esp + 0x4c]
push ebx
push eax
call dword [0xfe8014f8]
add esp, 0xc
lea eax, [esp + 0x58]
push 0x14
push esi
push eax
call dword [0xfe8014f4]
add esp, 0xc
lea ecx, [esp + 0x48]
call fcn.0042e998
lea ecx, [esp + 0x98]
mov bl, 1
call fcn.00414114
mov ecx, dword [esp + 0x10]
call fcn.0042b3a3
mov ecx, dword [esp + 0x18]
call fcn.0042b3a3
mov al, bl
jmp 0x40b0e2
mov ecx, edi
call fcn.0042b3a3
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3bc
ret 8