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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [esp + 0x40]
imul esi, ebx, 0xa48
mov eax, dword [esi + 0x450a0c]
lea edi, [esi + 0x24c]
test eax, eax
je 0x408448
cmp dword [0x456340], 0x10000
jle 0x408404
cmp dword [0x458d94], 0xffffffff
je 0x408404
lea edx, [esi + 0x4507c0]
lea ecx, [esi + 0x450a08]
movzx eax, byte [edx + 0x24a]
cmp al, 1
je 0x408450
mov byte [edx + eax + 0x248], bl
movzx eax, byte [edx + 0x24a]
mov dword [esp], ecx
add eax, 1
mov dword [esp + 4], eax
call fcn.0041a150
mov eax, dword [edi + 0x4507c0]
cmp eax, dword [0x459040]
je 0x408470
cmp eax, dword [0x459044]
je 0x40892a
cmp eax, dword [0x459048]
je 0x40893c
cmp eax, dword [0x45904c]
je 0x40894e
cmp eax, dword [0x459050]
je 0x4089de
cmp dword [0x459054], eax
je 0x408507
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov byte [edx + 0x710], bl
mov dword [esp + 4], 0x4c9
mov dword [esp], ecx
call fcn.0041a150
mov eax, dword [edi + 0x4507c0]
jmp 0x408404
mov dword [esp + 0x14], 0
mov edi, 1
lea esi, [esi]
imul eax, ebx, 0xa48
mov ecx, dword [eax + 0x4509c0]
test ecx, ecx
je 0x408900
imul eax, ebx, 0xa48
add eax, 0x4507c0
movzx edx, byte [eax + 0x24b]
mov dword [eax + 0x200], edi
cmp dl, 6
je 0x408750
ja 0x408520
cmp dl, 1
je 0x408598
cmp dl, 4
jne 0x4088f0
cmp byte [eax + 0x24a], 0x14
je 0x408960
mov dword [esp + 0xc], 3
mov dword [esp + 8], 9
mov eax, dword [0x45929c]
mov dword [esp + 4], 0x8000
mov dword [esp], eax
call dword [sym.imp.USER32.dll_PostMessageW]
sub esp, 0x10
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x14], 5
mov edi, 6
jmp 0x408480
cmp dl, 0x11
jne 0x4088f0
mov ebx, dword [esp + 0x14]
xor eax, eax
mov ecx, 0x20
mov edx, ebx
shl edx, 7
add edx, 0x454840
mov edi, edx
imul edx, ebx, 0x5c
rep stosd dword es:[edi], eax
mov ecx, 0x17
add edx, 0x454600
mov edi, edx
movzx edx, byte [0x458460]
rep stosd dword es:[edi], eax
mov eax, 1
mov ecx, ebx
mov dword [esp + 0xc], 0x11
shl eax, cl
mov dword [esp + 8], 5
not eax
and eax, edx
xor edx, edx
mov byte [0x458460], al
lea eax, [ebx + ebx*4]
shl eax, 5
mov word [eax + 0x456746], dx
jmp 0x4084e6
cmp byte [eax + 0x24a], 0x80
jne 0x4084d6
movzx eax, byte [eax + 0x2bd]
cmp al, 0x18
je 0x4085b8
cmp al, 0x68
jne 0x4084d6
mov edi, dword [esp + 0x14]
add esi, 0x450a08
mov dword [esp + 0xc], pe_nt_image_headers32
mov dword [esp + 8], esi
mov esi, edi
mov dword [esp + 4], pe_nt_image_headers32
shl esi, 7
add esi, 0x454840
mov dword [esp], esi
call dword [0x42a308]
movzx eax, byte [0x458460]
bt eax, edi
jae 0x408a01
imul ecx, dword [0x456348], 0x1e0
mov eax, edi
mov ebp, dword [esi + 0x30]
lea edi, [edi*4]
lea edx, [edi + eax]
mov eax, edx
shl edx, 4
add ecx, edx
shl eax, 5
lea edx, [ecx + 0x457380]
mov dword [ecx + 0x457380], ebp
mov ecx, dword [esi + 8]
add eax, 0x456740
mov dword [eax + 8], ebp
mov dword [eax + 0xc], ecx
mov dword [edx + 4], ecx
mov ecx, dword [esi + 0x34]
mov dword [eax + 0x18], ecx
mov dword [edx + 8], ecx
mov ecx, dword [esi + 0xc]
mov dword [eax + 0x1c], ecx
mov dword [edx + 0xc], ecx
mov ecx, dword [esi + 0x38]
mov dword [eax + 0x28], ecx
mov dword [edx + 0x10], ecx
mov ecx, dword [esi + 0x10]
mov dword [eax + 0x2c], ecx
mov dword [edx + 0x14], ecx
mov ecx, dword [esi + 0x3c]
mov dword [eax + 0x38], ecx
mov dword [edx + 0x18], ecx
mov ecx, dword [esi + 0x14]
mov dword [eax + 0x3c], ecx
mov dword [edx + 0x1c], ecx
mov ecx, dword [esi + 0x40]
mov dword [eax + 0x48], ecx
mov dword [edx + 0x20], ecx
mov ecx, dword [esi + 0x18]
mov dword [eax + 0x4c], ecx
mov dword [edx + 0x24], ecx
mov ecx, dword [esi + 0x44]
mov dword [eax + 0x58], ecx
mov dword [edx + 0x28], ecx
mov ecx, dword [esi + 0x1c]
mov dword [eax + 0x5c], ecx
mov dword [edx + 0x2c], ecx
mov ecx, dword [esi + 0x48]
mov dword [eax + 0x68], ecx
mov dword [edx + 0x30], ecx
mov ecx, dword [esi + 0x20]
mov dword [eax + 0x6c], ecx
mov dword [edx + 0x34], ecx
mov ecx, dword [esi + 0x4c]
mov dword [eax + 0x78], ecx
mov dword [edx + 0x38], ecx
mov ecx, dword [esi + 0x24]
mov dword [eax + 0x7c], ecx
mov dword [edx + 0x3c], ecx
mov ecx, dword [esi + 0x50]
mov dword [eax + 0x88], ecx
mov dword [edx + 0x40], ecx
mov ecx, dword [esi + 0x28]
mov dword [eax + 0x8c], ecx
mov dword [edx + 0x44], ecx
mov ecx, dword [esi + 0x54]
mov dword [eax + 0x98], ecx
mov dword [edx + 0x48], ecx
mov ecx, dword [esi + 0x2c]
mov dword [eax + 0x9c], ecx
imul eax, ebx, 0xa48
mov dword [edx + 0x4c], ecx
mov dword [esp + 8], 3
movzx eax, byte [eax + 0x450a0b]
mov dword [esp + 4], 0x8000
mov dword [esp + 0xc], eax
mov eax, dword [0x45929c]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_PostMessageW]
sub esp, 0x10
mov eax, dword [esp + 0x14]
add edi, eax
shl edi, 5
cmp word [edi + 0x456746], 0
jne 0x408448
movzx eax, byte [0x456348]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00407720
jmp 0x408448
cmp byte [eax + 0x24a], 0x5c
jne 0x4084d6
mov edi, dword [esp + 0x14]
add esi, 0x450a08
mov dword [esp + 0xc], 0x5c
mov dword [esp + 8], esi
xor esi, esi
imul ebp, edi, 0x5c
mov dword [esp + 4], 0x5c
lea eax, [ebp + 0x454600]
mov dword [esp], eax
call dword [0x42a308]
lea eax, [edi + edi*4]
mov dword [esp + 0x40], ebx
mov edi, ebp
shl eax, 5
mov edx, eax
lea esi, [esi]
mov eax, dword [ebp + esi*8 + 0x454608]
xor ecx, ecx
mov dword [edx + 0x456740], eax
movzx eax, word [edi + 0x45460c]
mov word [edx + 0x456744], ax
movzx eax, word [ebp + esi*8 + 0x45460e]
add esi, 1
mov word [edx + 0x456746], ax
movzx eax, byte [edi + ecx + 0x454608]
test al, al
jne 0x408828
add ecx, 1
cmp ecx, 4
jne 0x4087cf
add edi, 8
add edx, 0x10
cmp esi, 0xa
jne 0x4087a0
mov ebx, dword [esp + 0x40]
mov eax, dword [esp + 0x14]
cmp dword [0x42a2e4], eax
jle 0x408803
mov dword [0x42a2e4], eax
imul eax, ebx, 0xa48
mov dword [esp + 8], 3
movzx eax, byte [eax + 0x450a0b]
mov dword [esp + 0xc], eax
jmp 0x4084e6
cmp esi, 0xa
je 0x4089f0
lea ebx, [edi + 0x454600]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebx
mov ebp, dword [esp + 0x1c]
mov ebx, esi
cmp byte [ebp + 0x10], al
je 0x408890
cmp byte [ebp + 0x11], al
je 0x408890
cmp byte [ebp + 0x12], al
je 0x408890
cmp byte [ebp + 0x13], al
je 0x408890
cmp byte [ebp + 0x14], al
je 0x408890
add ebx, 1
add ebp, 8
cmp ebx, 0xa
jne 0x408845
add ecx, 1
cmp ecx, 4
je 0x408a3b
movzx eax, byte [edi + ecx + 0x454608]
test al, al
jne 0x40883f
mov ebp, dword [esp + 0x18]
jmp 0x4087db
mov eax, esi
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x18], edx
shl ecx, 0x10
mov edx, dword [esp + 0x14]
shl eax, 0x18
shl ebx, 8
add edi, 8
sub eax, 0x1000000
mov dword [esp + 8], 4
or eax, edx
mov dword [esp + 4], 0x8000
or ecx, eax
mov eax, dword [0x45929c]
or ecx, ebx
mov dword [esp + 0xc], ecx
mov dword [esp], eax
call dword [sym.imp.USER32.dll_PostMessageW]
sub esp, 0x10
mov edx, dword [esp + 0x18]
add edx, 0x10
jmp 0x4087a0
mov dword [esp + 0xc], edx
jmp 0x4084de
mov eax, dword [0x45929c]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 2
mov dword [esp + 4], 0x8000
mov dword [esp], eax
call dword [sym.imp.USER32.dll_PostMessageW]
sub esp, 0x10
jmp 0x408494
mov dword [esp + 0x14], 1
mov edi, 2
jmp 0x408480
mov dword [esp + 0x14], 2
mov edi, 3
jmp 0x408480
mov dword [esp + 0x14], 3
mov edi, 4
jmp 0x408480
mov edi, dword [esp + 0x14]
add esi, 0x450a08
mov dword [esp + 0xc], 0x14
mov dword [esp + 8], esi
lea eax, [edi + edi*4]
mov dword [esp + 4], 0x14
lea esi, [eax*4 + 0x454580]
mov dword [esp], esi
call dword [0x42a308]
cmp dword [0x4584ac], 4
jne 0x4089b0
mov eax, dword [0x45849c]
cmp eax, 1
jle 0x4089b0
cmp dword [0x4584a8], edi
je 0x408a4a
mov dword [esp + 4], 0x11
mov dword [esp], ebx
call fcn.00407230
imul eax, ebx, 0xa48
mov dword [esp + 8], 6
movzx eax, byte [eax + 0x450a0b]
mov dword [esp + 0xc], eax
jmp 0x4084e6
mov dword [esp + 0x14], 4
mov edi, 5
jmp 0x408480
add ecx, 1
cmp ecx, 4
jne 0x4087cf
jmp 0x4087ee
movzx eax, byte [0x456348]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.004080a0
mov esi, dword [esp + 0x14]
mov edx, 1
movzx eax, byte [0x458460]
mov ecx, esi
lea edi, [esi*4]
shl edx, cl
or eax, edx
mov byte [0x458460], al
jmp 0x40871a
mov ebp, dword [esp + 0x18]
add edi, 8
add edx, 0x10
jmp 0x4087a0
mov edx, dword [esi + 8]
mov ecx, 0x60
test edx, edx
jns 0x408a61
movzx edx, dx
mov ecx, 3
mov dword [esi + 8], edx
add eax, 1
mov word [0x458484], cx
mov dword [0x45849c], eax
cmp eax, 7
jg 0x408803
cmp eax, 3
je 0x408b1a
add dword [0x458494], edx
cmp edx, dword [0x458490]
jae 0x408a96
mov dword [0x458490], edx
cmp dword [0x45848c], edx
jae 0x408aa4
mov dword [0x45848c], edx
cmp eax, 7
jne 0x408803
mov esi, dword [esp + 0x14]
mov dword [esp + 4], 0x11
mov dword [esp], esi
call fcn.00407230
imul eax, esi, 0x14
movzx ecx, word [eax + 0x45458e]
test cx, cx
jne 0x408ad5
mov ecx, 0x4650
mov eax, dword [0x458494]
mov edx, dword [0x45848c]
mov word [0x458488], cx
add edx, dword [0x458490]
movzx esi, word [0x458484]
sub eax, edx
xor edx, edx
imul eax, eax, 0x2710
div esi
xor edx, edx
div ecx
mov edx, 0x270f
cmp ax, dx
cmova eax, edx
mov word [0x458486], ax
jmp 0x408803
mov dword [0x45848c], edx
mov dword [0x458490], edx
mov dword [0x458494], edx
jmp 0x408803