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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x110
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov byte [esp + 0x107], 0x86
mov edx, dword [esp + 0x108]
mov esi, edx
add esi, 0x45e0d145
mov dword [esp + 0x108], esi
mov dword [esp + 0xf0], 0x137000b6
mov dword [esp + 0xe4], 0
mov dword [esp + 0xe0], 0x77aa013a
lea esi, [esp + 0xa4]
movaps xmm0, xmmword [0x40b0a0]
movups xmmword [esp + 0xa4], xmm0
mov byte [esp + 0xb4], 0x64
mov byte [esp + 0xb5], 0x64
mov byte [esp + 0xb6], 0x72
movzx edi, word [esp + 0x104]
mov bx, di
mov byte [esp + 0xb7], 0x65
mov dword [esp + 0x74], eax
imul eax, edi, 0xffffb06e
mov word [esp + 0x104], ax
mov byte [esp + 0xb8], 0x73
mov al, byte [esp + 0x107]
mov ah, 0xf9
sub ah, al
mov byte [esp + 0x73], al
add al, 0x47
mov byte [esp + 0xf7], al
mov byte [esp + 0xb9], ah
mov byte [esp + 0xf7], 0xd5
mov al, byte [esp + 0x73]
add al, 0x7a
mov byte [esp + 0xf7], 0xf5
mov byte [esp + 0xba], al
mov byte [esp + 0xf7], 2
mov byte [esp + 0xbb], 0x5f
mov dword [esp + 0x108], 0xd0fd8e19
mov word [esp + 0x70], bx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x68], edx
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], edi
call fcn.00408180
mov ecx, eax
mov dl, byte [esp + 0x73]
add dl, 0xac
mov esi, eax
mov edi, dword [eax + 0x3c]
mov ebx, eax
add ebx, edi
mov byte [esp + 0xf7], dl
mov edx, dword [esp + 0x60]
xor edx, 0x4621
mov word [esp + 0x104], dx
mov edx, dword [esp + 0x60]
and edx, 0x6e7a
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0xf8]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0xfc]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x5c]
mov edi, dword [eax + edi]
xor eax, eax
sub edi, 0x4550
cmove eax, ebx
mov word [esp + 0x104], dx
mov eax, dword [eax + 0x78]
mov ebx, eax
mov dword [esp + 0x108], 0x1d41d39a
mov edx, dword [esp + 0x5c]
add edx, eax
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x50]
mov eax, dword [eax + ecx + 0x20]
mov ecx, dword [esp + 0x5c]
add ecx, eax
mov al, byte [esp + 0x73]
and al, al
mov byte [esp + 0xf7], al
mov al, byte [esp + 0x73]
mov byte [esp + 0xf7], al
add al, 0x4e
mov byte [esp + 0x4b], al
mov eax, dword [esp + 0xf0]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x4c]
mov ebx, dword [eax + ebx + 0x18]
mov al, byte [esp + 0x4b]
mov byte [esp + 0xf7], al
mov eax, dword [esp + 0x44]
add eax, 0xec8fff4a
mov dword [esp + 0x40], eax
mov al, byte [esp + 0x73]
sub al, al
mov byte [esp + 0xf7], al
mov dword [esp + 0xc4], 0
mov eax, dword [esp + 0x40]
cmp ebx, eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], ebx
je 0x409cfa
jmp 0x409cc3
mov al, byte [esp + 0x73]
mov byte [esp + 0xf7], al
mov ecx, dword [esp + 0x88]
mov dl, byte [esp + 0xd3]
test dl, dl
setne dl
mov dword [esp + 0xfc], 0
mov dword [esp + 0xf8], 0x37f4ef5e
and dl, byte [esp + 0xef]
add ecx, 1
mov dword [esp + 0x108], 0x861ebdcc
cmp ecx, 0x20
setb ah
and ah, dl
mov dword [esp + 0x8c], ecx
test ah, 1
jne 0x409fbd
jmp 0x409faa
lea eax, [esp + 0x78]
mov dword [esp + 0x108], 0x12bb477e
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x68]
xor eax, 0x6d773315
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x90], 0
jmp 0x409ea1
mov eax, dword [esp + 0x30]
add eax, 0x24
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0xe0]
mov ecx, dword [esp + 0xe4]
sub eax, 0x5053c0b8
sbb ecx, 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ecx
jb 0x40a0e4
jmp 0x409f45
mov eax, dword [esp + 0x54]
not eax
mov ecx, dword [esp + 0x58]
not ecx
mov edx, dword [esp + 0xc4]
mov dword [esp + 0xf8], ecx
mov dword [esp + 0xfc], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x108], eax
mov eax, edx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov al, byte [esp + 0x73]
or al, 0xbe
mov ecx, dword [esp + 0x9c]
mov byte [esp + 0xf7], al
mov si, word [esp + 0x70]
mov dx, si
and edx, 0x4289
mov di, dx
add ecx, 2
mov edx, dword [esp + 0xcc]
mov word [esp + 0x104], di
inc edx
mov ebx, dword [esp + 0x58]
mov dword [esp + 0xf8], ebx
mov eax, dword [esp + 0x54]
mov dword [esp + 0xfc], eax
mov dword [esp + 0xd4], ecx
mov dword [esp + 0xa0], edx
mov dword [esp + 0xc4], 0
mov ecx, dword [esp + 0x2c]
cmp edx, ecx
jb 0x40a027
jmp 0x409cfa
mov ax, word [esp + 0x70]
add ax, 0xbe12
mov ecx, dword [esp + 0xf0]
xor ecx, 0x137000b6
mov edx, dword [esp + 0xc8]
mov si, dx
mov word [esp + 0x104], ax
mov word [esp + 0x78], si
mov dword [esp + 0x108], 0x5ffbff7f
mov byte [esp + 0xf7], 0xb1
mov word [esp + 0x7a], si
mov edx, dword [esp + 0xc8]
and edx, 0xffff
mov dword [esp + 0x84], 0
cmp edx, ecx
je 0x409f97
mov word [esp + 0x104], 0x9a63
mov al, byte [esp + 0x73]
not al
mov byte [esp + 0xf7], al
mov dword [esp + 0x98], 0
mov dx, word [esp + 0x70]
mov cx, dx
xor ecx, 0x15fb
mov si, cx
mov word [esp + 0x104], si
mov ecx, dword [esp + 0x80]
mov edi, esp
lea ebx, [esp + 0x98]
mov dword [edi + 0xc], ebx
lea ebx, [esp + 0x78]
mov dword [edi + 4], ebx
mov ebx, dword [esp + 0x6c]
mov dword [edi], ebx
mov dword [edi + 8], 0
call ecx
sub esp, 0x10
mov ecx, dword [esp + 0x98]
mov dword [esp + 0xfc], 0
mov dword [esp + 0xf8], 0
mov dword [esp + 0x84], ecx
mov dword [esp + 0x20], eax
jmp 0x409f97
mov eax, dword [esp + 0xf0]
mov ecx, dword [esp + 0x90]
mov edx, 0x137000b7
sub edx, eax
mov dword [esp + 0xc8], ecx
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
imul eax, ecx
mov esi, dword [esp + 0x58]
mov dword [esp + 0x1c], eax
mov eax, esi
mov dword [esp + 0x18], edx
mul esi
mov edi, dword [esp + 0x1c]
add edx, edi
add edx, edi
mov ebx, dword [esp + 0xc8]
mov dword [esp + 0xf8], eax
mov dword [esp + 0xfc], edx
mov al, byte [esp + 0x107]
mov ah, byte [esp + 0x73]
and ah, 0x5a
xor al, 0x86
mov byte [esp + 0xf7], ah
mov edx, dword [esp + 0x74]
mov ah, byte [edx + ebx]
mov ebx, dword [esp + 0xc8]
mov ecx, dword [esp + 0x68]
xor ecx, 0x5b0e1c52
mov dword [esp + 0x108], ecx
mov ecx, dword [esp + 0x18]
add ebx, ecx
mov dword [esp + 0x90], ebx
cmp ah, al
je 0x409da8
jmp 0x409ea1
mov eax, dword [esp + 0xf0]
add eax, 0xec8fff4a
mov cl, byte [esp + 0x73]
and cl, 3
mov edx, dword [esp + 0xdc]
mov byte [esp + 0xf7], cl
mov edx, dword [edx]
mov esi, dword [esp + 0x34]
add esi, edx
mov dword [esp + 0xfc], 0x23de68b
mov dword [esp + 0xf8], 0xd349e64c
mov dword [esp + 0xd4], esi
mov dword [esp + 0xa0], eax
jmp 0x40a027
mov eax, dword [esp + 0x84]
mov dword [esp + 0xc4], eax
jmp 0x409cfa
test byte [esp + 0xef], 1
jne 0x40a0e4
jmp 0x409d30
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0xd8]
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x108], ecx
mov edx, dword [esp + 0x88]
mov bl, byte [eax + edx]
mov eax, dword [esp + 0x88]
mov bh, byte [esp + eax + 0xa4]
mov byte [esp + 0xd3], bh
cmp bl, byte [esp + 0xd3]
sete bh
and bh, 1
mov byte [esp + 0xef], bh
and ecx, 0x31d3611c
mov dword [esp + 0x108], ecx
cmp bl, 0
je 0x409faa
jmp 0x409c1f
mov eax, dword [esp + 0x68]
add eax, eax
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0xcc], eax
mov eax, dword [esp + 0x68]
add eax, 0x850c925f
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xcc]
mov dword [esp + 0xfc], 0
mov dword [esp + 0xf8], 0x67a29945
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx + eax*4]
mov edx, 0x6021152b
mov esi, dword [esp + 0x58]
mov dword [esp + 0x14], eax
mov eax, esi
mul edx
mov edi, dword [esp + 0x54]
imul ebx, edi, 0x6021152b
add edx, ebx
mov dword [esp + 0xfc], edx
mov dword [esp + 0xf8], eax
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
add eax, edx
mov dword [esp + 0xd8], eax
or esi, 0x2d9de44d
mov dword [esp + 0xfc], edi
mov dword [esp + 0xf8], esi
mov dword [esp + 0x8c], 0
jmp 0x409fbd
mov eax, dword [esp + 0x54]
not eax
mov ecx, dword [esp + 0x58]
not ecx
mov dword [esp + 0xf8], ecx
mov dword [esp + 0xfc], eax
mov eax, dword [esp + 0x9c]
mov word [esp + 0x104], 0x473
movzx eax, word [eax]
mov dword [esp + 0xfc], 0
mov dword [esp + 0xf8], 0x6fffac9a
mov dx, word [esp + 0x70]
mov cx, dx
mov esi, dword [esp + 0x30]
mov edi, dword [esi + 0x1c]
mov dword [esp + 0xfc], 0
mov dword [esp + 0xf8], 0x6489876a
imul ecx, ecx, 0x1bf8
mov bx, cx
mov ecx, dword [esp + 0x34]
add ecx, edi
mov word [esp + 0x104], bx
mov eax, dword [ecx + eax*4]
mov ecx, dword [esp + 0x58]
add ecx, 0x6650e0bb
mov edi, dword [esp + 0x54]
adc edi, 0
mov esi, dword [esp + 0x34]
add esi, eax
mov dword [esp + 0xf8], ecx
mov dword [esp + 0xfc], edi
mov dword [esp + 0x80], esi
mov eax, dword [esp + 0x58]
and eax, 0x4f03ee76
mov dword [esp + 0xf8], eax
mov dword [esp + 0xfc], 0
mov dword [esp + 0xc4], 0
cmp esi, 0
je 0x409cfa
jmp 0x409c85