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

Disassembly:
push ebp
push ebx
sub esp, 0x118
mov edx, dword [0x414620]
test edx, edx
je 0x408297
mov ebx, dword [0x413be8]
lea eax, [esp + 0x18]
xor ecx, ecx
mov dword [esp + 0x18], ecx
mov ebp, dword [ebx]
push eax
push 0x411358
push edx
push 0x411578
push ecx
push ebx
call dword [ebp + 0x18]
test eax, eax
jne 0x408297
mov edx, dword [0x414620]
cmp edx, dword [0x413c1c]
mov al, 0
mov byte [esp + 0x14], al
je 0x4082c2
mov bl, 1
mov eax, dword [0x413c40]
test eax, eax
je 0x407ca5
call fcn.00405244
test bl, bl
je 0x407cd8
mov edx, dword [0x413c1c]
test edx, edx
je 0x407cf8
mov eax, dword [0x413c10]
test eax, eax
je 0x407cf8
mov ecx, dword [0x413be8]
push eax
push 0
mov ebp, dword [ecx]
push edx
push 0x411578
push 0x411448
push ecx
call dword [ebp + 0x1c]
jmp 0x407cf8
mov eax, dword [0x413c10]
test eax, eax
je 0x407ce8
push eax
call fcn.00403600
pop ecx
mov eax, dword [0x413c1c]
test eax, eax
je 0x407cf8
push eax
call fcn.00402b64
pop ecx
lea eax, [esp + 0x1c]
push eax
push 0x32
push 0
call sub.MSACM32.dll_acmMetrics
test bl, bl
je 0x407d29
push dword [0x414620]
push dword [0x413ac8]
call fcn.004082dc
add esp, 8
movzx eax, al
test eax, eax
jne 0x408273
mov byte [esp + 8], bl
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
mov edx, dword [esp + 0x18]
mov dword [esp + 0x20], 0
mov eax, dword [edx]
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [eax + 0x10]
test eax, eax
jne 0x4082c9
mov eax, dword [esp + 0x20]
mov edx, dword [0x413c00]
mov ebp, dword [eax + 0x44]
xor eax, eax
test edx, edx
mov dword [esp + 0x24], 0
je 0x407d8e
lea ecx, [esp + 0x24]
push ecx
push edx
mov eax, dword [edx]
call dword [eax + 0x10]
test eax, eax
je 0x407d8a
mov dword [esp + 0x24], 0
xor eax, eax
jmp 0x407d8e
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4082b2
mov eax, dword [eax + 0x44]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1c]
movzx edx, word [ebp + 0x10]
add edx, 0x12
cmp eax, edx
ja 0x407dae
mov eax, edx
mov dword [esp + 0x1c], eax
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x408248
mov edx, dword [esp + 0x20]
mov ecx, dword [edx + 0x40]
mov edi, ebx
mov esi, ebp
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push dword [esp + 0x1c]
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [esp], eax
mov edx, eax
test edx, edx
je 0x40822c
lea edx, [esp + 0x28]
xor ecx, ecx
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
mov dword [edx + 0x14], ecx
mov dword [edx + 0x18], ecx
mov dword [edx + 0x1c], ecx
mov dword [edx + 0x20], ecx
mov dword [edx + 0x24], ecx
mov dword [edx + 0x28], ecx
mov dword [edx + 0x2c], ecx
mov dword [edx + 0x30], ecx
mov dword [edx + 0x34], ecx
mov dword [edx + 0x38], ecx
mov dword [edx + 0x3c], ecx
mov dword [edx + 0x40], ecx
mov dword [edx + 0x44], ecx
mov dword [edx + 0x48], ecx
mov dword [edx + 0x4c], ecx
mov dword [edx + 0x50], ecx
mov dword [edx + 0x54], ecx
mov dword [edx + 0x58], ecx
mov dword [edx + 0x5c], ecx
mov dword [edx + 0x60], ecx
mov dword [edx + 0x64], ecx
mov dword [edx + 0x68], ecx
mov dword [edx + 0x6c], ecx
mov dword [edx + 0x70], ecx
mov dword [edx + 0x74], ecx
mov dword [edx + 0x78], ecx
mov dword [edx + 0x7c], ecx
mov dword [edx + 0x80], ecx
mov dword [edx + 0x84], ecx
mov dword [edx + 0x88], ecx
mov dword [edx + 0x8c], ecx
mov dword [edx + 0x90], ecx
mov dword [edx + 0x94], ecx
mov dword [edx + 0x98], ecx
mov dword [edx + 0x9c], ecx
mov dword [edx + 0xa0], ecx
mov dword [edx + 0xa4], ecx
mov dword [edx + 0xa8], ecx
mov dword [edx + 0xac], ecx
mov dword [edx + 0xb0], ecx
mov dword [edx + 0xb4], ecx
mov dword [edx + 0xb8], ecx
mov dword [edx + 0xbc], ecx
mov dword [edx + 0xc0], ecx
mov dword [edx + 0xc4], ecx
mov dword [edx + 0xc8], ecx
mov dword [edx + 0xcc], ecx
mov dword [edx + 0xd0], ecx
mov dword [edx + 0xd4], ecx
mov dword [edx + 0xd8], ecx
mov dword [edx + 0xdc], ecx
mov dword [edx + 0xe0], ecx
mov dword [edx + 0xe4], ecx
mov edx, dword [0x413ac8]
mov edi, eax
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x34], ebx
mov esi, ebp
mov dword [esp + 0x28], 0xe8
mov dword [esp + 0xfc], edi
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x20]
mov ecx, dword [edx + 0x40]
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dl, byte [esp + 8]
test dl, dl
je 0x407f8f
mov edx, dword [esp + 4]
mov ecx, dword [esp]
movzx eax, word [edx + 2]
mov word [ecx + 2], ax
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov dword [esp + 0xf8], 0x70000
movzx ecx, word [edx + 2]
movzx edx, word [ebp + 2]
cmp ecx, edx
jne 0x407f87
mov ecx, dword [esp + 4]
mov edx, dword [ecx + 4]
cmp edx, dword [ebp + 4]
jne 0x407f87
mov edx, 0x40
jmp 0x407f89
xor edx, edx
mov dword [esp + 0x2c], edx
jmp 0x407fa2
mov dword [esp + 0xf8], 0x10000
mov dword [esp + 0x2c], 0x40
lea edx, [esp + 0x28]
push edx
call sub.MSACM32.dll_acmFormatChooseA
test eax, eax
je 0x407fbb
mov dl, 1
mov byte [esp + 0x14], dl
jmp 0x40820a
movzx edx, word [ebx + 0x10]
add edx, 0x12
push edx
push ebx
mov ecx, dword [esp + 0x28]
call fcn.0040ef8c
mov ecx, dword [esp + 0x18]
push dword [esp + 0x20]
push ecx
mov edx, dword [ecx]
call dword [edx + 0xc]
mov ecx, dword [esp + 0x18]
lea ebp, [esp + 0x110]
push ebp
mov edx, dword [ecx]
push ecx
call dword [edx + 0x10]
test eax, eax
jne 0x40820a
mov ebp, dword [esp + 0x110]
lea esi, [ebp + 0x2c]
mov edi, 0x411498
mov ecx, 0x10
xor eax, eax
test ecx, ecx
je 0x408020
mov al, byte [esi]
sub al, byte [edi]
jne 0x408020
add esi, 1
add edi, 1
sub ecx, 1
jne 0x40800f
seta al
setb cl
sub al, cl
movsx eax, al
test eax, eax
jne 0x408204
mov edx, dword [ebp + 0x44]
movzx esi, word [ebx + 2]
movzx ecx, word [edx + 2]
cmp esi, ecx
jne 0x408073
mov ecx, dword [ebx + 4]
cmp ecx, dword [edx + 4]
jne 0x408073
mov ecx, dword [ebx + 8]
cmp ecx, dword [edx + 8]
jne 0x408073
movzx esi, word [ebx + 0xe]
movzx ecx, word [edx + 0xe]
cmp esi, ecx
jne 0x408073
movzx ecx, word [ebx]
movzx edx, word [edx]
cmp ecx, edx
jne 0x408073
mov dl, 1
mov byte [esp + 0x14], dl
jmp 0x408204
mov dl, byte [esp + 8]
test dl, dl
je 0x408204
mov ecx, dword [esp + 0x18]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov edx, dword [0x413c34]
mov dword [esp + 0x18], 0
test edx, edx
jne 0x4080a5
mov edx, dword [0x413c38]
test edx, edx
je 0x4080aa
call fcn.00405784
call fcn.00403728
call fcn.00402c80
mov edx, dword [0x413c10]
mov ecx, dword [0x4144a4]
mov dword [0x414620], edx
test ecx, ecx
je 0x4080d5
call fcn.00404ca4
mov edx, dword [0x414620]
test edx, edx
je 0x4082a0
mov ebp, dword [0x413c1c]
test ebp, ebp
je 0x408111
mov esi, dword [0x413c10]
test esi, esi
je 0x408111
mov ecx, dword [0x413be8]
push esi
push 0
mov edx, dword [ecx]
push ebp
push 0x411578
push 0x411448
push ecx
call dword [edx + 0x1c]
mov edx, dword [0x414620]
mov ebp, dword [0x413be8]
lea esi, [esp + 0x18]
push esi
mov ecx, dword [ebp]
push 0x411358
push edx
push 0x411578
push 0
push ebp
call dword [ecx + 0x18]
test eax, eax
je 0x408146
mov ebp, dword [esp + 0x110]
mov dl, 1
mov byte [esp + 0x14], dl
jmp 0x408204
mov ecx, dword [esp + 0x18]
push dword [esp + 0x20]
push ecx
mov edx, dword [ecx]
call dword [edx + 0xc]
mov ecx, dword [esp + 0x18]
lea ebp, [esp + 0x114]
push ebp
mov edx, dword [ecx]
push ecx
call dword [edx + 0x10]
test eax, eax
je 0x408176
mov ebp, dword [esp + 0x110]
jmp 0x408204
mov edx, dword [esp + 0x114]
mov dword [esp + 4], edx
lea esi, [edx + 0x2c]
mov edi, 0x411498
mov ecx, 0x10
xor eax, eax
test ecx, ecx
je 0x4081a5
mov al, byte [esi]
sub al, byte [edi]
jne 0x4081a5
add esi, 1
add edi, 1
sub ecx, 1
jne 0x408194
seta al
setb cl
sub al, cl
movsx eax, al
test eax, eax
jne 0x4081f3
mov edx, dword [esp + 4]
mov edx, dword [edx + 0x44]
movzx ebp, word [ebx + 2]
movzx ecx, word [edx + 2]
cmp ebp, ecx
jne 0x4081f3
mov ecx, dword [ebx + 4]
cmp ecx, dword [edx + 4]
jne 0x4081f3
mov ecx, dword [ebx + 8]
cmp ecx, dword [edx + 8]
jne 0x4081f3
movzx ebp, word [ebx + 0xe]
movzx ecx, word [edx + 0xe]
cmp ebp, ecx
jne 0x4081f3
movzx ecx, word [ebx]
movzx edx, word [edx]
cmp ecx, edx
jne 0x4081f3
mov dl, 1
mov byte [esp + 0x14], dl
mov edx, dword [esp + 4]
push edx
call fcn.0040ef38
mov ebp, dword [esp + 0x110]
push ebp
call fcn.0040ef38
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x408256
push eax
call fcn.0040ef38
push dword [esp + 0x20]
call fcn.0040ef38
mov al, byte [esp + 0x14]
test al, al
je 0x407d35
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x408281
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x4144a4]
test eax, eax
je 0x408297
mov dword [esp + 0x18], 0
call fcn.00405150
add esp, 0x118
pop ebx
pop ebp
ret
mov ebp, dword [esp + 0x110]
mov dl, 1
mov byte [esp + 0x14], dl
jmp 0x408204
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0x44]
mov dword [esp + 4], eax
jmp 0x407d9d
mov bl, 0
jmp 0x407c97
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
add esp, 0x118
pop ebx
pop ebp
ret