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

Disassembly:
sub esp, 0x58
push ebx
push esi
push edi
push ebp
mov edi, dword [esp + 0x6c]
push edi
call fcn.00419170
mov ecx, dword [esp + 0x74]
add esp, 4
cmp ecx, 0x10
mov ebp, eax
mov edx, ecx
ja 0x419cc8
je 0x419ebd
cmp edx, 1
je 0x419d24
cmp edx, 3
je 0x419dd2
cmp edx, 5
je 0x419e3e
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x58
ret
cmp edx, 0x2b
ja 0x419ce6
je 0x419f36
cmp edx, 0x24
je 0x419edd
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x58
ret
cmp edx, 0x82
ja 0x419d07
je 0x419fbe
cmp edx, 0x2c
je 0x419f5a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x58
ret
sub edx, 0x110
cmp edx, 0xf2
ja case.0x419d1d.275
xor eax, eax
mov al, byte [edx + 0x41a574]
jmp dword [eax*4 + 0x41a564]
mov ax, word [0x50c018]
xor esi, esi
mov word [esp + 0x40], ax
lea eax, [esp + 0x40]
mov dword [esp + 0x42], edi
push eax
mov dword [esp + 0x4a], esi
push 0x36
call fcn.00418a40
add esp, 8
test eax, eax
je 0x419d6d
cmp dword [esp + 0x5e], esi
jne 0x419d69
mov ecx, dword [esp + 0x7c]
mov eax, 1
pop ebp
pop edi
pop esi
mov dword [ecx], 0xffffffff
pop ebx
add esp, 0x58
ret
mov esi, dword [esp + 0x5e]
lea eax, [esp + 0x40]
push eax
push 0x30
call fcn.00418a40
add esp, 8
mov ebx, eax
push 0x42
lea eax, [ebx + 0x22]
push eax
call fcn.00488d30
add esp, 8
mov ebp, eax
test ebp, ebp
jne 0x419da9
mov ecx, dword [esp + 0x7c]
mov eax, 1
pop ebp
pop edi
pop esi
mov dword [ecx], 0xffffffff
pop ebx
add esp, 0x58
ret
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov cx, word [0x50c018]
push eax
mov word [eax + 8], cx
push 0x1e
push edi
mov dword [eax], ebp
mov dword [eax + 4], ebx
mov dword [eax + 0x1e], esi
call dword [sym.imp.USER32.dll_SetWindowLongA]
jmp 0x41a54a
push edi
call fcn.004dcec0
mov word [esp + 0x18], ax
add esp, 4
test ax, ax
je 0x41a54a
cmp dword [ebp + 0x1a], 0
jne 0x41a54a
lea eax, [esp + 0x40]
push eax
push edi
call fcn.0041a950
mov dword [ebp + 0x1a], 1
mov dword [esp + 0x1e], edi
add esp, 8
mov eax, dword [ebp + 0xa]
mov dword [esp + 0x1a], eax
lea eax, [esp + 0x14]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x1e], edx
push eax
mov dword [esp + 0x26], ecx
push 0x19
call fcn.00418a40
mov dword [ebp + 0x1a], 0
add esp, 8
jmp 0x41a54a
push edi
call fcn.004dcec0
mov word [esp + 0x18], ax
add esp, 4
test ax, ax
je 0x41a54a
movsx eax, word [esp + 0x78]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x78]
shr eax, 0x10
cmp dword [ebp + 0x1a], 0
movsx ecx, ax
jne 0x41a54a
mov dword [ebp + 0x1a], 1
mov dword [esp + 0x16], edi
mov eax, dword [ebp + 0xa]
mov dword [esp + 0x1a], eax
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x40]
sub eax, 2
mov dword [esp + 0x1e], edx
cmp eax, 1
sbb eax, eax
mov dword [esp + 0x22], ecx
neg eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x36], eax
push ecx
push 0x17
call fcn.00418a40
mov dword [ebp + 0x1a], 0
add esp, 8
jmp 0x41a54a
mov dword [esp + 0x16], edi
mov eax, dword [ebp + 0xa]
mov dword [esp + 0x1a], eax
mov cx, word [ebp + 8]
mov word [esp + 0x14], cx
lea ecx, [esp + 0x14]
push ecx
push 0x20
jmp 0x41a542
push edi
call fcn.004dcec0
mov word [esp + 0x18], ax
add esp, 4
test ax, ax
je 0x41a54a
cmp dword [ebp + 0x1a], 0
jne 0x41a54a
mov esi, dword [esp + 0x78]
lea edx, [esp + 0x14]
mov dword [esp + 0x16], edi
push edx
mov eax, dword [ebp + 0xa]
lea ecx, [esi + 8]
push 0x1e
add esi, 0x18
mov dword [esp + 0x22], eax
mov dword [esp + 0x3a], ecx
call fcn.00418a40
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3a], esi
add esp, 8
push ecx
push 0x18
jmp 0x41a542
mov eax, dword [esp + 0x78]
push eax
push edi
call fcn.00419970
mov ecx, dword [esp + 0x84]
add esp, 8
pop ebp
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x58
ret
mov esi, dword [esp + 0x78]
mov eax, dword [esi]
cmp eax, 2
je 0x419f6e
cmp eax, 3
jne 0x41a54a
mov edx, dword [esp + 0x74]
mov dword [esp + 0x16], edi
mov ax, word [ebp + 8]
mov word [esp + 0x14], ax
lea eax, [esp + 0x14]
mov ecx, dword [ebp + 0xa]
push eax
mov dword [esp + 0x1e], ecx
push 0xa
mov dword [esp + 0x36], 8
mov dword [esp + 0x2e], edx
call fcn.00418a40
mov ecx, dword [esp + 0x84]
add esp, 8
mov dword [esi + 0x10], eax
mov eax, 1
pop ebp
mov dword [ecx], 1
pop edi
pop esi
pop ebx
add esp, 0x58
ret
test ebp, ebp
je 0x419fe9
mov eax, dword [ebp + 0x1e]
test eax, eax
je 0x419fd2
push eax
call fcn.00489200
add esp, 4
mov eax, dword [ebp]
push eax
call fcn.00488e40
add esp, 4
push 0
push 0x1e
push edi
call dword [sym.imp.USER32.dll_SetWindowLongA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x58
ret
push edi
call fcn.00419be0
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x58
ret
mov eax, dword [esp + 0x74]
mov esi, dword [esp + 0x78]
mov word [esp + 0x12], ax
mov dword [esp + 0x16], edi
shr eax, 0x10
mov cx, word [ebp + 8]
movzx ebx, ax
mov word [esp + 0x14], cx
mov eax, dword [ebp + 0xa]
mov dword [esp + 0x1a], eax
mov eax, dword [esp + 0x12]
and eax, 0xffff
cmp ebx, 0x100
mov dword [esp + 0x3c], eax
mov dword [esp + 0x26], eax
je 0x41a050
cmp ebx, 4
je 0x41a050
cmp ebx, 3
jne 0x41a053
mov dword [ebp + 0x16], esi
test esi, esi
je 0x41a47e
lea eax, [esp + 0x40]
push 0x14
push eax
mov ebp, dword [sym.imp.USER32.dll_GetClassNameA]
push esi
call ebp
test eax, eax
je 0x41a47e
lea eax, [esp + 0x40]
push str.button
push eax
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
call edi
test eax, eax
jne 0x41a0eb
cmp dword [esp + 0x26], 0x63
jne 0x41a098
mov dword [esp + 0x26], 1
cmp dword [esp + 0x26], 0x1f3
jne 0x41a0aa
mov dword [esp + 0x26], 1
test ebx, ebx
jne 0x41a54a
mov dword [esp + 0x2e], 2
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
test al, al
je 0x41a0cf
cmp al, 1
jne 0x41a4c3
lea eax, [esp + 0x14]
push eax
push 0x1b
call fcn.00418a40
add esp, 8
test eax, eax
jne 0x41a4c3
jmp 0x41a54a
lea eax, [esp + 0x40]
push str.edit
push eax
call edi
test eax, eax
je 0x41a41e
lea eax, [esp + 0x40]
push str.calcedit
push eax
call edi
test eax, eax
je 0x41a41e
lea eax, [esp + 0x40]
push str.sedit
push eax
call edi
test eax, eax
je 0x41a41e
lea eax, [esp + 0x40]
push str.combobox
push eax
call edi
test eax, eax
jne 0x41a15f
cmp ebx, 1
jne 0x41a149
mov dword [esp + 0x2e], 4
jmp 0x41a4c3
cmp ebx, 2
jne 0x41a54a
mov dword [esp + 0x2e], 3
jmp 0x41a4c3
lea eax, [esp + 0x40]
push str.listbox
push eax
call edi
test eax, eax
je 0x41a3d2
lea eax, [esp + 0x40]
push str.buttonlistbox
push eax
call edi
test eax, eax
je 0x41a3d2
lea eax, [esp + 0x40]
push 0x505dd4
push eax
call edi
test eax, eax
je 0x41a398
lea eax, [esp + 0x40]
push str.o_cusbit
push eax
call edi
test eax, eax
je 0x41a398
lea eax, [esp + 0x40]
push 0x505de8
push eax
call edi
test eax, eax
jne 0x41a216
push esi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov dword [esp + 0x26], eax
cmp ebx, 1
jne 0x41a1dc
mov dword [esp + 0x2e], 2
jmp 0x41a4c3
cmp ebx, 2
jne 0x41a1ee
mov dword [esp + 0x2e], 0xb
jmp 0x41a4c3
cmp ebx, 3
jne 0x41a200
mov dword [esp + 0x2e], 0xc
jmp 0x41a4c3
cmp ebx, 4
jne 0x41a54a
mov dword [esp + 0x2e], 0xa
jmp 0x41a4c3
lea eax, [esp + 0x40]
push str.BmpButt
push eax
call edi
test eax, eax
jne 0x41a246
push esi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov dword [esp + 0x26], eax
test ebx, ebx
jne 0x41a54a
mov dword [esp + 0x2e], 2
jmp 0x41a4c3
lea eax, [esp + 0x40]
push str.custtab
push eax
call edi
test eax, eax
jne 0x41a2cb
cmp ebx, 1
jne 0x41a54a
push 0
push 0
push 0x408
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, dword [esp + 0x3c]
mov edi, eax
je 0x41a54a
push esi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov dword [esp + 0x26], eax
test edi, edi
mov dword [esp + 0x2e], 2
je 0x41a2a9
lea eax, [esp + 0x14]
push eax
push 0x1b
call fcn.00418a40
add esp, 8
test eax, eax
je 0x41a54a
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x14]
and ecx, 0xffff
push edx
movzx eax, di
shl eax, 0x10
push 0x3a
or eax, ecx
mov dword [esp + 0x3e], eax
jmp 0x41a542
lea eax, [esp + 0x40]
push str.cussel
push eax
call edi
test eax, eax
jne 0x41a4c3
push 0
cmp ebx, 0x405
jne 0x41a30f
push 4
push esi
call dword [sym.imp.USER32.dll_GetWindowWord]
movzx eax, ax
push eax
call fcn.00480980
mov dword [esp + 0x36], 0xd
mov dword [esp + 0x3e], eax
add esp, 8
jmp 0x41a4c3
push esi
mov edi, dword [sym.imp.USER32.dll_GetWindowWord]
call edi
movzx eax, ax
mov dword [esp + 0x1e], eax
push 2
push esi
call edi
movzx eax, ax
mov dword [esp + 0x22], eax
cmp ebx, 0x401
jne 0x41a340
mov dword [esp + 0x2e], 0xb
jmp 0x41a4c3
cmp ebx, 0x402
jne 0x41a355
mov dword [esp + 0x2e], 0xa
jmp 0x41a4c3
cmp ebx, 0x403
jne 0x41a36a
mov dword [esp + 0x2e], 0xc
jmp 0x41a4c3
cmp ebx, 0x407
jne 0x41a37f
mov dword [esp + 0x2e], 5
jmp 0x41a4c3
cmp ebx, 0x408
jne 0x41a54a
mov dword [esp + 0x2e], 6
jmp 0x41a4c3
cmp ebx, 1
jne 0x41a3aa
mov dword [esp + 0x2e], 4
jmp 0x41a4c3
cmp ebx, 3
jne 0x41a3bc
mov dword [esp + 0x2e], 3
jmp 0x41a4c3
cmp ebx, 2
jne 0x41a54a
mov dword [esp + 0x2e], 2
jmp 0x41a4c3
cmp ebx, 1
jne 0x41a3e4
mov dword [esp + 0x2e], 4
jmp 0x41a4c3
cmp ebx, 2
jne 0x41a3f6
mov dword [esp + 0x2e], 3
jmp 0x41a4c3
cmp ebx, 4
jne 0x41a408
mov dword [esp + 0x2e], 5
jmp 0x41a4c3
cmp ebx, 5
jne 0x41a54a
mov dword [esp + 0x2e], 6
jmp 0x41a4c3
cmp ebx, 0x300
jne 0x41a433
mov dword [esp + 0x2e], 4
jmp 0x41a4c3
cmp ebx, 0x100
jne 0x41a445
mov dword [esp + 0x2e], 5
jmp 0x41a4c3
cmp ebx, 0x200
jne 0x41a457
mov dword [esp + 0x2e], 6
jmp 0x41a4c3
cmp ebx, 0x61
jne 0x41a54a
lea eax, [esp + 0x40]
push str.sedit
push eax
call edi
test eax, eax
jne 0x41a54a
mov dword [esp + 0x2e], 2
jmp 0x41a4c3
cmp word [esp + 0x12], 1
jne 0x41a4c3
test esi, esi
jne 0x41a4c3
test ebx, ebx
jne 0x41a4c3
push edi
call fcn.00419590
add esp, 4
test eax, eax
je 0x41a4a4
cmp eax, 1
je 0x41a4a4
mov dword [esp + 0x26], eax
mov dword [esp + 0x2e], 2
lea eax, [esp + 0x14]
push eax
push 0x1b
call fcn.00418a40
add esp, 8
test eax, eax
je 0x41a54a
lea eax, [esp + 0x14]
push eax
push 0xa
jmp 0x41a542
movsx eax, word [esp + 0x78]
mov dword [esp + 0x40], eax
mov dword [esp + 0x16], edi
mov eax, dword [esp + 0x78]
mov ebx, dword [ebp + 0xa]
shr eax, 0x10
mov dword [esp + 0x1a], ebx
movsx edx, ax
mov ax, word [ebp + 8]
mov word [esp + 0x14], ax
mov eax, dword [esp + 0x74]
mov ebp, dword [esp + 0x40]
and eax, 0x13
mov dword [esp + 0x1e], ebp
mov dword [esp + 0x36], eax
mov eax, 0x41
mov dword [esp + 0x22], edx
cmp ecx, 0x200
je 0x41a529
cmp ecx, 0x201
je 0x41a530
cmp ecx, 0x202
je 0x41a537
jmp 0x41a53c
mov eax, 0x41
jmp 0x41a53c
mov eax, 0x45
jmp 0x41a53c
mov eax, 0x46
lea ecx, [esp + 0x14]
push ecx
push eax
call fcn.00418a40
add esp, 8
mov ecx, dword [esp + 0x7c]
mov eax, 1
pop ebp
pop edi
pop esi
mov dword [ecx], 0
pop ebx
add esp, 0x58
ret