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

Disassembly:
push 0xffffffffffffffff
push 0x45d117
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push ebp
push esi
push 0xcc
mov esi, ecx
call fcn.0043b6de
add esp, 4
mov dword [esp + 0xc], eax
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x68], ebp
je 0x40c811
mov ecx, eax
call fcn.00425600
jmp 0x40c813
xor eax, eax
push ebp
push str.SYSMSGWND
or ebx, 0xffffffff
push eax
mov dword [esp + 0x74], ebx
mov dword [esi + 0xf0], eax
call fcn.0040fd70
mov ecx, eax
call fcn.0040fc70
test eax, eax
jne 0x40c849
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret
push edi
push 8
call fcn.00407cb0
mov ecx, eax
call fcn.00407f90
push 0x5b8
mov dword [esi + 0x1dc4], eax
call fcn.0043b6de
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
cmp edi, ebp
mov dword [esp + 0x6c], 1
je 0x40c891
call fcn.0040b210
mov eax, dword [eax + 4]
push ebp
push ebp
push eax
mov ecx, edi
call fcn.00403d00
jmp 0x40c893
xor eax, eax
mov ecx, dword [esi + 0x1dc4]
mov dword [esp + 0x38], ecx
push ecx
mov ecx, eax
mov dword [esp + 0x70], ebx
mov dword [esi + 0x140], eax
mov dword [esp + 0x34], 0x120
call fcn.00403f90
mov ecx, dword [esi + 0x140]
push 0x20
call fcn.00403f20
mov ecx, dword [esi + 0x140]
push 1
lea eax, [esp + 0x34]
push eax
call fcn.00425760
mov ecx, dword [esi + 0x140]
mov eax, dword [esi + 0xf0]
mov edx, dword [ecx]
push ebp
push eax
call dword [edx + 0x44]
mov ecx, dword [esi + 0x140]
mov edx, dword [ecx]
push 0x800
call dword [edx + 0x10]
mov ecx, dword [esi + 0x140]
push 1
lea edx, [esp + 0x24]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], 0x26c
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], 0x64
mov eax, dword [ecx]
push edx
call dword [eax + 0x3c]
mov ecx, dword [esi + 0x140]
push 0x64
push 0x26c
call fcn.004259c0
mov ecx, dword [esi + 0x140]
mov eax, dword [ecx]
push 0x1cd
push 0x5a
call dword [eax + 8]
mov ecx, dword [esi + 0x140]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
push 0xcc
call fcn.0043b6de
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebp
mov dword [esp + 0x6c], 2
je 0x40c979
mov ecx, eax
call fcn.00425600
jmp 0x40c97b
xor eax, eax
push ebp
push str.SYSNAMEWND
push eax
mov dword [esp + 0x78], ebx
mov dword [esi + 0x108], eax
call fcn.0040fd70
mov ecx, eax
call fcn.0040fc70
test eax, eax
jne 0x40c9b1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret
push 0x5b8
call fcn.0043b6de
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
cmp edi, ebp
mov dword [esp + 0x6c], 3
je 0x40c9e4
call fcn.0040b210
mov eax, dword [eax + 4]
push ebp
push ebp
push eax
mov ecx, edi
call fcn.00403d00
jmp 0x40c9e6
xor eax, eax
mov ecx, dword [esi + 0x1dc4]
mov dword [esp + 0x38], ecx
push ecx
mov ecx, eax
mov dword [esp + 0x70], ebx
mov dword [esi + 0x144], eax
mov dword [esp + 0x34], 0x120
call fcn.00403f90
mov ecx, dword [esi + 0x144]
push 0x20
call fcn.00403f20
mov ecx, dword [esi + 0x144]
push 1
lea eax, [esp + 0x34]
push eax
call fcn.00425760
mov ecx, dword [esi + 0x144]
mov eax, dword [esi + 0x108]
mov edx, dword [ecx]
push ebp
push eax
call dword [edx + 0x44]
mov ecx, dword [esi + 0x144]
mov edx, dword [ecx]
push 0x800
call dword [edx + 0x10]
mov ecx, dword [esi + 0x144]
push 1
lea edx, [esp + 0x24]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], 0x118
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], 0x28
mov eax, dword [ecx]
push edx
call dword [eax + 0x3c]
mov ecx, dword [esi + 0x144]
push 0x28
push 0x118
call fcn.004259c0
mov ecx, dword [esi + 0x144]
mov eax, dword [ecx]
push 0x19b
push 0x5a
call dword [eax + 8]
mov ecx, dword [esi + 0x144]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
push 0xcc
call fcn.0043b6de
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebp
mov dword [esp + 0x6c], 4
je 0x40cacc
mov ecx, eax
call fcn.00425600
jmp 0x40cace
xor eax, eax
mov ecx, dword [esi + 0x108]
mov dword [esp + 0x6c], ebx
mov dword [esi + 0x10c], eax
mov edi, dword [eax]
mov ebx, ecx
mov edx, dword [ebx]
push 0x20
mov dword [esp + 0x14], ecx
call dword [edx + 0xc]
push eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
mov ecx, dword [esi + 0x10c]
push eax
call dword [edi + 0x38]
mov ecx, dword [esi + 0x10c]
mov edx, dword [ecx]
push 0x14
call dword [edx + 0x98]
mov ecx, dword [esi + 0x10c]
mov eax, dword [ecx]
push 1
call dword [eax + 0xe4]
push 0x5b8
call fcn.0043b6de
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebp
mov dword [esp + 0x6c], 5
je 0x40cb4e
mov ecx, dword [esi + 0x144]
push ebp
push ebp
push ecx
mov ecx, eax
call fcn.00403d00
jmp 0x40cb50
xor eax, eax
or edi, 0xffffffff
push 0x20
mov ecx, eax
mov dword [esp + 0x70], edi
mov dword [esi + 0x148], eax
call fcn.00403f20
mov ecx, dword [esi + 0x148]
mov eax, dword [esi + 0x10c]
mov edx, dword [ecx]
push ebp
push eax
call dword [edx + 0x44]
push 1
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esi + 0x148]
mov dword [esp + 0x38], 0x20
call fcn.00425760
mov ecx, dword [esi + 0x148]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
mov ecx, dword [esi + 0x148]
mov eax, dword [ecx]
push 0x7f0
call dword [eax + 0x10]
mov ecx, dword [esi + 0x10c]
mov dword [esp + 0x20], ebp
mov edx, dword [ecx]
call dword [edx + 8]
mov ecx, dword [esi + 0x10c]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ebp
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [esi + 0x148]
mov dword [esp + 0x2c], eax
mov edx, dword [ecx]
push 1
lea eax, [esp + 0x24]
push eax
call dword [edx + 0x3c]
mov ecx, dword [esi + 0x148]
mov edx, dword [ecx]
push ebp
push ebp
call dword [edx + 8]
mov ebx, dword [esi + 0x10c]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc]
mov edx, dword [ebx]
push eax
mov ecx, ebx
call dword [edx + 8]
mov ecx, dword [esi + 0x148]
push eax
call fcn.004259c0
push 0x5b8
call fcn.0043b6de
mov ebx, eax
add esp, 4
mov dword [esp + 0x10], ebx
cmp ebx, ebp
mov dword [esp + 0x6c], 6
je 0x40cc4e
call fcn.0040b210
mov ecx, dword [esi + 0xf0]
mov eax, dword [eax + 4]
push ebp
push ecx
push eax
mov ecx, ebx
call fcn.00403d00
jmp 0x40cc50
xor eax, eax
push 1
lea edx, [esp + 0x34]
push edx
mov ecx, eax
mov dword [esp + 0x74], edi
mov dword [esi + 0x14c], eax
mov dword [esp + 0x38], 0x20
call fcn.00425760
mov ecx, dword [esi + 0x14c]
push 0x20
call fcn.00403f20
mov ecx, dword [esi + 0x14c]
mov eax, dword [ecx]
push 0x800
call dword [eax + 0x10]
mov ecx, dword [esi + 0x14c]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
mov ecx, dword [esi + 0x14c]
mov eax, dword [ecx]
push 1
push 0x46b710
call dword [eax + 0x3c]
mov eax, dword [0x46b684]
mov ecx, dword [esi + 0x14c]
mov edx, dword [ecx]
push eax
mov eax, dword [0x46b680]
push eax
call dword [edx + 8]
mov ecx, dword [0x46b6cc]
mov edx, dword [0x46b6c8]
push ecx
mov ecx, dword [esi + 0x14c]
push edx
call fcn.004259c0
push 0x5b8
call fcn.0043b6de
mov ebx, eax
add esp, 4
mov dword [esp + 0x10], ebx
cmp ebx, ebp
mov dword [esp + 0x6c], 7
je 0x40cd14
call fcn.0040b210
mov ecx, dword [esi + 0xf0]
mov eax, dword [eax + 4]
push ebp
push ecx
push eax
mov ecx, ebx
call fcn.00403d00
jmp 0x40cd16
xor eax, eax
push 1
lea edx, [esp + 0x34]
push edx
mov ecx, eax
mov dword [esp + 0x74], edi
mov dword [esi + 0x150], eax
mov dword [esp + 0x38], 0x20
call fcn.00425760
mov ecx, dword [esi + 0x150]
push 0x20
call fcn.00403f20
mov ecx, dword [esi + 0x150]
mov eax, dword [ecx]
push 0x800
call dword [eax + 0x10]
mov ecx, dword [esi + 0x150]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
mov ecx, dword [esi + 0x150]
mov eax, dword [ecx]
push 1
push 0x46b720
call dword [eax + 0x3c]
mov eax, dword [0x46b68c]
mov ecx, dword [esi + 0x150]
mov edx, dword [ecx]
push eax
mov eax, dword [0x46b688]
push eax
call dword [edx + 8]
mov ecx, dword [0x46b6d4]
mov edx, dword [0x46b6d0]
push ecx
mov ecx, dword [esi + 0x150]
push edx
call fcn.004259c0
push 0x5b8
call fcn.0043b6de
mov ebx, eax
add esp, 4
mov dword [esp + 0x10], ebx
cmp ebx, ebp
mov dword [esp + 0x6c], 8
je 0x40cdda
call fcn.0040b210
mov ecx, dword [esi + 0xf0]
mov eax, dword [eax + 4]
push ebp
push ecx
push eax
mov ecx, ebx
call fcn.00403d00
jmp 0x40cddc
xor eax, eax
push 1
lea edx, [esp + 0x34]
push edx
mov ecx, eax
mov dword [esp + 0x74], edi
mov dword [esi + 0x15c], eax
mov dword [esp + 0x38], 0x20
call fcn.00425760
mov ecx, dword [esi + 0x15c]
push 0x20
call fcn.00403f20
mov ecx, dword [esi + 0x15c]
mov eax, dword [ecx]
push 0x800
call dword [eax + 0x10]
mov ecx, dword [esi + 0x15c]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
mov ecx, dword [esi + 0x15c]
mov eax, dword [ecx]
push 1
push 0x46b750
call dword [eax + 0x3c]
mov eax, dword [0x46b6a4]
mov ecx, dword [esi + 0x15c]
mov edx, dword [ecx]
push eax
mov eax, dword [0x46b6a0]
push eax
call dword [edx + 8]
mov ecx, dword [0x46b6ec]
mov edx, dword [0x46b6e8]
push ecx
mov ecx, dword [esi + 0x15c]
push edx
call fcn.004259c0
push 0x5b8
call fcn.0043b6de
mov ebx, eax
add esp, 4
mov dword [esp + 0x10], ebx
cmp ebx, ebp
mov dword [esp + 0x6c], 9
je 0x40cea0
call fcn.0040b210
mov ecx, dword [esi + 0xf0]
mov eax, dword [eax + 4]
push ebp
push ecx
push eax
mov ecx, ebx
call fcn.00403d00
jmp 0x40cea2
xor eax, eax
push 1
lea edx, [esp + 0x34]
push edx
mov ecx, eax
mov dword [esp + 0x74], edi
mov dword [esi + 0x154], eax
mov dword [esp + 0x38], 0x20
call fcn.00425760
mov ecx, dword [esi + 0x154]
push 0x20
call fcn.00403f20
mov ecx, dword [esi + 0x154]
mov eax, dword [ecx]
push 0x800
call dword [eax + 0x10]
mov ecx, dword [esi + 0x154]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
mov ecx, dword [esi + 0x154]
mov eax, dword [ecx]
push 1
push 0x46b730
call dword [eax + 0x3c]
mov eax, dword [0x46b694]
mov ecx, dword [esi + 0x154]
mov edx, dword [ecx]
push eax
mov eax, dword [0x46b690]
push eax
call dword [edx + 8]
mov ecx, dword [0x46b6dc]
mov edx, dword [0x46b6d8]
push ecx
mov ecx, dword [esi + 0x154]
push edx
call fcn.004259c0
push 0x5b8
call fcn.0043b6de
mov ebx, eax
add esp, 4
mov dword [esp + 0x10], ebx
cmp ebx, ebp
mov dword [esp + 0x6c], 0xa
je 0x40cf66
call fcn.0040b210
mov ecx, dword [esi + 0xf0]
mov eax, dword [eax + 4]
push ebp
push ecx
push eax
mov ecx, ebx
call fcn.00403d00
jmp 0x40cf68
xor eax, eax
push 1
lea edx, [esp + 0x34]
push edx
mov ecx, eax
mov dword [esp + 0x74], edi
mov dword [esi + 0x158], eax
mov dword [esp + 0x38], 0x20
call fcn.00425760
mov ecx, dword [esi + 0x158]
push 0x20
call fcn.00403f20
mov ecx, dword [esi + 0x158]
mov eax, dword [ecx]
push 0x800
call dword [eax + 0x10]
mov ecx, dword [esi + 0x158]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
mov ecx, dword [esi + 0x158]
mov eax, dword [ecx]
push 1
push 0x46b730
call dword [eax + 0x3c]
mov eax, dword [0x46b69c]
mov ecx, dword [esi + 0x158]
mov edx, dword [ecx]
push eax
mov eax, dword [0x46b698]
push eax
call dword [edx + 8]
mov ecx, dword [0x46b6e4]
mov edx, dword [0x46b6e0]
push ecx
mov ecx, dword [esi + 0x158]
push edx
call fcn.004259c0
push 0xcc
call fcn.0043b6de
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebp
mov dword [esp + 0x6c], 0xb
je 0x40d019
mov ecx, eax
call fcn.00425600
jmp 0x40d01b
xor eax, eax
push 0x20
push 0x258
mov dword [esi + 0xf4], eax
mov edx, dword [eax]
push 0x320
mov ecx, eax
mov dword [esp + 0x78], edi
call dword [edx + 0x38]
mov ecx, dword [esi + 0xf4]
mov eax, dword [ecx]
mov ebx, 0x14
push ebx
call dword [eax + 0x98]
mov dword [esi + 0x1dbc], ebx
mov dword [esi + 0x1dc0], ebx
mov dword [esi + 0x1db0], edi
mov dword [esi + 0x1db4], edi
lea ebx, [esi + 0x1a4]
mov dword [esp + 0x10], 0x100
push 0x5b8
mov dword [esp + 0x34], 0x20
call fcn.0043b6de
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebp
mov dword [esp + 0x6c], 0xc
je 0x40d0ab
mov ecx, dword [esi + 0x140]
push ebp
push ebp
push ecx
mov ecx, eax
call fcn.00403d00
mov edi, eax
jmp 0x40d0ad
xor edi, edi
push 0x20
mov ecx, edi
mov dword [esp + 0x70], 0xffffffff
call fcn.00403f20
mov eax, dword [esi + 0xf4]
mov edx, dword [edi]
push ebp
push eax
mov ecx, edi
call dword [edx + 0x44]
push 1
lea ecx, [esp + 0x34]
push ecx
mov ecx, edi
call fcn.00425760
mov edx, dword [edi]
push ebp
mov ecx, edi
call dword [edx + 4]
mov eax, dword [edi]
push 0x7e0
mov ecx, edi
call dword [eax + 0x10]
mov eax, dword [esp + 0x10]
mov dword [ebx - 4], edi
mov ecx, dword [esi + 0xf4]
mov dword [ebx], ecx
mov dword [ebx + 8], ebp
mov dword [ebx + 0x10], ebp
mov dword [ebx + 0xc], ebp
mov dword [ebx + 0x14], ebp
add ebx, 0x1c
dec eax
mov dword [esp + 0x10], eax
jne 0x40d072
push 0xcc
call fcn.0043b6de
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebp
mov dword [esp + 0x6c], 0xd
je 0x40d13e
mov ecx, eax
call fcn.00425600
jmp 0x40d140
xor eax, eax
push 0x20
push 0x40
mov dword [esi + 0x104], eax
mov edx, dword [eax]
or edi, 0xffffffff
push 0x40
mov ecx, eax
mov dword [esp + 0x78], edi
call dword [edx + 0x38]
mov ecx, dword [esi + 0x104]
mov eax, dword [ecx]
push 0x14
call dword [eax + 0x98]
push 0x5b8
call fcn.0043b6de
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebp
mov dword [esp + 0x6c], 0xe
je 0x40d19f
mov ecx, dword [esi + 0x104]
mov edx, dword [esi + 0x140]
push ebp
push ecx
push edx
mov ecx, eax
call fcn.00403d00
jmp 0x40d1a1
xor eax, eax
push 1
lea ecx, [esp + 0x34]
push ecx
mov ecx, eax
mov dword [esp + 0x74], edi
mov dword [esi + 0x174], eax
mov dword [esp + 0x38], 0x20
call fcn.00425760
mov ecx, dword [esi + 0x174]
push 0x20
call fcn.00403f20
mov ecx, dword [esi + 0x174]
mov edx, dword [ecx]
push 0x7e0
call dword [edx + 0x10]
mov ecx, dword [esi + 0x104]
mov eax, dword [ecx]
push 0xffdcd2dc
call dword [eax + 0xb0]
mov ecx, dword [esi + 0x104]
mov edx, dword [ecx]
push 1
call dword [edx + 0xe4]
mov ecx, dword [esi + 0x104]
mov eax, dword [ecx]
lea edx, [esp + 0x18]
push edx
push 0x45fa10
push ebp
push ebp
call dword [eax + 0xf0]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
mov ecx, dword [esi + 0x174]
call fcn.004259c0
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov ecx, dword [esi + 0x174]
mov dword [esp + 0x2c], eax
push 1
lea eax, [esp + 0x24]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], ebp
mov edx, dword [ecx]
push eax
call dword [edx + 0x3c]
push 0xcc
call fcn.0043b6de
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebp
mov dword [esp + 0x6c], 0xf
je 0x40d280
mov ecx, eax
call fcn.00425600
jmp 0x40d282
xor eax, eax
push 1
push str.SysMsgChar
push eax
mov dword [esp + 0x78], edi
mov dword [esi + 0x110], eax
call fcn.0040fd70
mov ecx, eax
call fcn.0040fc70
push 0x14
call fcn.0043b6de
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebp
mov dword [esp + 0x6c], 0x10
je 0x40d2c3
mov ecx, eax
call fcn.0040f7e0
jmp 0x40d2c5
xor eax, eax
push 0x14
mov dword [esp + 0x70], edi
mov dword [esi + 4], eax
call fcn.0043b6de
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebp
mov dword [esp + 0x6c], 0x11
je 0x40d2ef
mov ecx, eax
call fcn.0040f1c0
jmp 0x40d2f1
xor eax, eax
mov ecx, eax
mov dword [esp + 0x6c], edi
mov dword [esi + 8], eax
call fcn.0040f3b0
push 0xcc
call fcn.0043b6de
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebp
mov dword [esp + 0x6c], 0x12
je 0x40d325
mov ecx, eax
call fcn.00425600
jmp 0x40d327
xor eax, eax
push ebp
push str.SYSSELWND1
push eax
mov dword [esp + 0x78], edi
mov dword [esi + 0xf8], eax
call fcn.0040fd70
mov ecx, eax
call fcn.0040fc70
test eax, eax
je 0x40c99c
push 0xcc
call fcn.0043b6de
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebp
mov dword [esp + 0x6c], 0x13
je 0x40d372
mov ecx, eax
call fcn.00425600
jmp 0x40d374
xor eax, eax
push ebp
push str.SYSSELWND2
push eax
mov dword [esp + 0x78], edi
mov dword [esi + 0x100], eax
call fcn.0040fd70
mov ecx, eax
call fcn.0040fc70
test eax, eax
je 0x40c99c
push 0xcc
call fcn.0043b6de
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebp
mov dword [esp + 0x6c], 0x14
je 0x40d3bf
mov ecx, eax
call fcn.00425600
jmp 0x40d3c1
xor eax, eax
mov ecx, dword [esi + 0xf8]
mov dword [esp + 0x6c], edi
mov dword [esi + 0xfc], eax
mov ebx, dword [eax]
mov edi, ecx
mov edx, dword [edi]
push 0x20
mov dword [esp + 0x18], ecx
call dword [edx + 0xc]
shl eax, 3
push eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
mov ecx, dword [esi + 0xfc]
push eax
call dword [ebx + 0x38]
push ebp
call fcn.00407cb0
mov ecx, eax
call fcn.00407fe0
push eax
call fcn.00409000
mov ecx, eax
call fcn.004092e0
test eax, eax
jne 0x40d425
push 0x45f854
push ebp
call fcn.00407cb0
mov ecx, eax
call fcn.00408000
push ebp
call fcn.00407cb0
mov ecx, eax
call fcn.00407fe0
push eax
mov ecx, esi
call fcn.0040bbc0
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret