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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x204811c9
mov eax, dword fs:[0]
push eax
sub esp, 0x488
mov eax, dword [0x204a31e0]
xor eax, esp
mov dword [esp + 0x480], eax
push ebx
push esi
push edi
mov eax, dword [0x204a31e0]
xor eax, esp
push eax
lea eax, [esp + 0x498]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, ecx
lea ecx, [esi + 0x2c8]
push edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], ecx
call sub.MFC80U.DLL_Ordinal_2860
mov esi, dword [esi + 0xc0]
test esi, esi
mov ebx, eax
je 0x2046ec73
cmp dword [esi + 0x10], ebx
jle 0x2046ec73
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
mov dword [esp + 0x4a0], 0
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
mov byte [esp + 0x4a0], 1
test ebx, ebx
jl 0x2046e368
cmp ebx, dword [esi + 0x10]
jge 0x2046e368
mov ecx, dword [esp + 0x24]
lea ebx, [ebx + ebx*8]
shl ebx, 5
add ebx, dword [esi + 0xc]
cmp byte [ebx + 4], 1
mov dword [esp + 0x2c], ebx
jne 0x2046e015
push 1
jmp 0x2046e017
push 0
push edi
call sub.MFC80U.DLL_Ordinal_5742
xor esi, esi
mov ecx, 3
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ecx
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov eax, dword [ebx + 0x18]
test al, 1
je 0x2046e063
test al, 2
je 0x2046e055
mov dword [esp + 0x60], ecx
jmp 0x2046e06d
test al, 1
je 0x2046e063
mov dword [esp + 0x60], 1
jmp 0x2046e06d
movsx eax, al
and eax, 2
mov dword [esp + 0x60], eax
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0x2e8]
lea ecx, [esp + 0x44]
push ecx
push esi
push 0x104c
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebx + 0xec]
mov ecx, dword [esp + 0x24]
push eax
push esi
push edi
call sub.MFC80U.DLL_Ordinal_5869
mov dword [esp + 0x4c], 1
mov eax, dword [ebx + 0x10]
sub eax, 1
je 0x2046e0fd
sub eax, 1
je 0x2046e0d9
sub eax, 1
jne 0x2046e11f
mov eax, dword [ebx + 0x14]
cmp eax, esi
je 0x2046e0cf
sub eax, 0x40
neg eax
sbb eax, eax
and eax, 6
add eax, 4
mov dword [esp + 0x60], eax
jmp 0x2046e11f
mov dword [esp + 0x60], 7
jmp 0x2046e11f
mov eax, dword [ebx + 0x14]
cmp eax, esi
je 0x2046e0f3
sub eax, 0x40
neg eax
sbb eax, eax
and eax, 6
add eax, 6
mov dword [esp + 0x60], eax
jmp 0x2046e11f
mov dword [esp + 0x60], 9
jmp 0x2046e11f
mov eax, dword [ebx + 0x14]
cmp eax, esi
je 0x2046e117
sub eax, 0x40
neg eax
sbb eax, eax
and eax, 6
add eax, 5
mov dword [esp + 0x60], eax
jmp 0x2046e11f
mov dword [esp + 0x60], 8
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0x2e8]
lea ecx, [esp + 0x44]
push ecx
push 0
push 0x104c
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [ebx + 0x1c]
cmp esi, 0xffffffff
je 0x2046e184
call fcn.20410b40
test eax, eax
jne 0x2046e15a
push esi
push 0x2048587c
lea ecx, [esp + 0x1c]
push ecx
jmp 0x2046e16a
call fcn.20410b40
push eax
push 0x2048a5c0
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.MFC80U.DLL_Ordinal_2311]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
add esp, 0xc
push eax
push 2
push edi
call sub.MFC80U.DLL_Ordinal_5869
push 0x20485878
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
mov eax, dword [ebx + 0x8c]
xor edi, edi
test eax, eax
jle 0x2046e22f
test edi, edi
je 0x2046e1be
push 0x20492490
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_899]
test edi, edi
jl 0x2046e368
cmp edi, dword [ebx + 0x8c]
jge 0x2046e368
mov ecx, dword [ebx + 0x88]
lea eax, [ecx + edi*2]
movzx eax, word [eax]
movzx esi, ax
call fcn.204108e0
test eax, eax
push esi
jne 0x2046e1f8
lea edx, [esp + 0x20]
push 0x20488654
push edx
call dword [sym.imp.MFC80U.DLL_Ordinal_2311]
add esp, 0xc
jmp 0x2046e211
call fcn.204108e0
push eax
lea eax, [esp + 0x24]
push 0x1b9
push eax
call dword [sym.imp.MFC80U.DLL_Ordinal_2310]
add esp, 0x10
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_896]
add edi, 1
cmp edi, dword [ebx + 0x8c]
jl 0x2046e1a3
mov eax, dword [ebx + 0xa0]
xor esi, esi
test eax, eax
jle 0x2046e2d0
test edi, edi
je 0x2046e252
push 0x20492490
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_899]
test esi, esi
jl 0x2046e368
cmp esi, dword [ebx + 0xa0]
jge 0x2046e368
mov eax, dword [ebx + 0x9c]
lea ecx, [esi*4]
mov edx, dword [eax + ecx]
add eax, ecx
cmp esi, dword [ebx + 0xa0]
mov dword [esp + 0x28], edx
jge 0x2046e368
mov eax, dword [ebx + 0x9c]
add eax, ecx
mov eax, dword [eax]
movzx ecx, word [esp + 0x2a]
movzx edx, ax
push ecx
push edx
lea eax, [esp + 0x24]
push str._d____d
push eax
call dword [sym.imp.MFC80U.DLL_Ordinal_2311]
add esp, 0x10
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_896]
add esi, 1
add edi, 1
cmp esi, dword [ebx + 0xa0]
jl 0x2046e23f
test edi, edi
jne 0x2046e2e3
push 0xba
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_4026]
mov edx, dword [esp + 0x14]
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x24]
push edx
push 4
push eax
call sub.MFC80U.DLL_Ordinal_5869
push 0x20485878
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
xor edi, edi
cmp dword [ebx + 0x64], edi
jle 0x2046e3f2
test edi, edi
je 0x2046e328
push 0x20492490
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_899]
test edi, edi
jl 0x2046e368
cmp edi, dword [ebx + 0x64]
jge 0x2046e368
mov ecx, dword [ebx + 0x60]
movzx edx, word [ecx + edi*2]
lea eax, [ecx + edi*2]
mov dword [esp + 0x18], edx
mov edx, dword [0x204a39a8]
xor eax, eax
test edx, edx
jle 0x2046e37d
mov esi, dword [0x204a39a4]
mov ecx, dword [esp + 0x18]
add esi, 0x20
cmp cx, word [esi]
je 0x2046e36d
add eax, 1
add esi, 0xc2
cmp eax, edx
jl 0x2046e354
jmp 0x2046e37d
call fcn.20477d24
imul eax, eax, 0xc2
add eax, dword [0x204a39a4]
test eax, eax
jne 0x2046e398
movzx eax, word [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
push 0x20488654
push ecx
call dword [sym.imp.MFC80U.DLL_Ordinal_2311]
add esp, 0xc
jmp 0x2046e3d7
mov ecx, dword [0x204a39a4]
mov esi, dword [esp + 0x18]
xor eax, eax
add ecx, 0x20
cmp si, word [ecx]
je 0x2046e96c
add eax, 1
add ecx, 0xc2
cmp eax, edx
jl 0x2046e3a7
xor eax, eax
movzx edx, si
push edx
push eax
lea eax, [esp + 0x24]
push 0x1b9
push eax
call dword [sym.imp.MFC80U.DLL_Ordinal_2310]
add esp, 0x10
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_896]
add edi, 1
cmp edi, dword [ebx + 0x64]
jl 0x2046e311
xor esi, esi
cmp dword [ebx + 0x78], esi
jle 0x2046e477
test edi, edi
je 0x2046e40c
push 0x20492490
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_899]
test esi, esi
jl 0x2046e368
cmp esi, dword [ebx + 0x78]
jge 0x2046e368
mov eax, dword [ebx + 0x74]
lea ecx, [esi*4]
mov edx, dword [eax + ecx]
add eax, ecx
cmp esi, dword [ebx + 0x78]
mov dword [esp + 0x28], edx
jge 0x2046e368
mov eax, dword [ebx + 0x74]
add eax, ecx
mov eax, dword [eax]
movzx ecx, word [esp + 0x2a]
movzx edx, ax
push ecx
push edx
lea eax, [esp + 0x24]
push str._d____d
push eax
call dword [sym.imp.MFC80U.DLL_Ordinal_2311]
add esp, 0x10
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_896]
add esi, 1
add edi, 1
cmp esi, dword [ebx + 0x78]
jl 0x2046e3f9
test edi, edi
jne 0x2046e48a
push 0xba
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_4026]
mov edx, dword [esp + 0x14]
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x24]
push edx
push 5
push eax
call sub.MFC80U.DLL_Ordinal_5869
push 0x20485878
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
mov eax, dword [ebx + 0x28]
xor esi, esi
test eax, eax
jle 0x2046e553
mov edi, dword [sym.imp.MSVCR80.dll__snwprintf_s]
test esi, esi
je 0x2046e4db
push 0x20492490
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_899]
test esi, esi
jl 0x2046e368
cmp esi, dword [ebx + 0x28]
jge 0x2046e368
mov ecx, dword [ebx + 0x24]
movzx edx, byte [ecx + esi*4]
lea eax, [ecx + esi*4]
movzx ecx, byte [eax + 1]
push edx
movzx edx, byte [eax + 2]
movzx eax, byte [eax + 3]
push ecx
push edx
push eax
push str._d._d._d._d
push 0xffffffffffffffff
lea ecx, [esp + 0x414]
push 0x10
push ecx
call edi
add esp, 0x20
cmp esi, dword [ebx + 0x28]
jge 0x2046e368
lea edx, [esp + 0x3fc]
push edx
lea eax, [esp + 0x20]
push 0x1ba
push eax
call dword [sym.imp.MFC80U.DLL_Ordinal_2310]
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_896]
add esi, 1
cmp esi, dword [ebx + 0x28]
jl 0x2046e4c0
xor edi, edi
cmp dword [ebx + 0x3c], edi
jle 0x2046e5cb
lea ebx, [ebx]
test esi, esi
je 0x2046e573
push 0x20492490
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_899]
lea edx, [esp + 0x41c]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x404]
mov eax, ebx
call fcn.20417ed0
lea ecx, [esp + 0x41c]
push ecx
lea edx, [esp + 0x400]
push edx
lea eax, [esp + 0x24]
push 0x1bb
push eax
call dword [sym.imp.MFC80U.DLL_Ordinal_2310]
add esp, 0x10
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_896]
add edi, 1
add esi, 1
cmp edi, dword [ebx + 0x3c]
jl 0x2046e560
xor edi, edi
cmp dword [ebx + 0x50], edi
jle 0x2046e63d
test esi, esi
je 0x2046e5e5
push 0x20492490
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_899]
lea edx, [esp + 0x41c]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x404]
mov eax, ebx
call fcn.20417f90
lea ecx, [esp + 0x41c]
push ecx
lea edx, [esp + 0x400]
push edx
lea eax, [esp + 0x24]
push 0x1bc
push eax
call dword [sym.imp.MFC80U.DLL_Ordinal_2310]
add esp, 0x10
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_896]
add edi, 1
add esi, 1
cmp edi, dword [ebx + 0x50]
jl 0x2046e5d2
mov eax, dword [ebx + 0xc8]
xor edi, edi
cmp eax, edi
jle 0x2046e6f8
mov dword [esp + 0x18], edi
test esi, esi
je 0x2046e664
push 0x20492490
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_899]
cmp dword [esp + 0x18], 0
jl 0x2046e368
cmp edi, dword [ebx + 0xc8]
jge 0x2046e368
mov eax, dword [ebx + 0xc4]
add eax, dword [esp + 0x18]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x30], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x43c]
mov dword [esp + 0x38], edx
push ecx
lea edx, [esp + 0x34]
mov dword [esp + 0x40], eax
push edx
mov eax, 0x28
call fcn.20406540
lea eax, [esp + 0x43c]
push eax
lea ecx, [esp + 0x20]
push 0x1bd
push ecx
call dword [sym.imp.MFC80U.DLL_Ordinal_2310]
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_896]
add dword [esp + 0x18], 0x10
add edi, 1
add esi, 1
cmp edi, dword [ebx + 0xc8]
jl 0x2046e651
xor edi, edi
cmp dword [ebx + 0xdc], edi
jle 0x2046e7fa
mov dword [esp + 0x18], edi
test esi, esi
je 0x2046e71d
push 0x20492490
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_899]
cmp dword [esp + 0x18], 0
jl 0x2046e368
cmp edi, dword [ebx + 0xdc]
jge 0x2046e368
mov eax, dword [ebx + 0xd8]
add eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x30], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x34], edx
mov edx, dword [eax + 0xc]
mov al, byte [eax + 0x10]
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x43c]
mov dword [esp + 0x3c], edx
push ecx
lea edx, [esp + 0x34]
mov byte [esp + 0x44], al
push edx
mov eax, 0x28
call fcn.20406540
cmp edi, dword [ebx + 0xdc]
jge 0x2046e368
mov eax, dword [ebx + 0xd8]
add eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x8b], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x8f], edx
mov edx, dword [eax + 0xc]
movzx eax, byte [eax + 0x10]
push eax
mov dword [esp + 0x97], ecx
lea ecx, [esp + 0x440]
push ecx
mov dword [esp + 0x9f], edx
lea edx, [esp + 0x24]
push 0x1be
push edx
call dword [sym.imp.MFC80U.DLL_Ordinal_2310]
add esp, 0x10
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_896]
add dword [esp + 0x18], 0x11
add edi, 1
add esi, 1
cmp edi, dword [ebx + 0xdc]
jl 0x2046e70a
cmp dword [ebx + 0xb4], 0
mov edi, dword [esp + 0x20]
mov dword [esp + 0x18], 0
jle 0x2046e8e6
test esi, esi
je 0x2046e826
push 0x20492490
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_899]
push 0x20485878
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
mov ecx, dword [edi + 0xc0]
test ecx, ecx
je 0x2046e8bd
mov eax, dword [esp + 0x18]
test eax, eax
jl 0x2046e368
cmp eax, dword [ebx + 0xb4]
jge 0x2046e368
mov edx, dword [ebx + 0xb0]
lea eax, [edx + eax*4]
mov eax, dword [eax]
lea edx, [esp + 0x9c]
push edx
lea edx, [ecx + 0x1c]
mov ebx, eax
call fcn.2041ecd0
mov byte [esp + 0x4a0], 2
cmp dword [esp + 0xa0], 0
je 0x2046e8a1
mov eax, dword [esp + 0x10c]
push eax
lea ecx, [esp + 0x20]
push 0x2048a5c0
push ecx
call dword [sym.imp.MFC80U.DLL_Ordinal_2311]
add esp, 0xc
mov byte [esp + 0x4a0], 1
lea ecx, [esp + 0x9c]
call fcn.2041c400
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x20]
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_896]
mov eax, dword [esp + 0x18]
add eax, 1
add esi, 1
cmp eax, dword [ebx + 0xb4]
mov dword [esp + 0x18], eax
jl 0x2046e813
test esi, esi
jne 0x2046e8f9
push 0xba
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_4026]
mov eax, dword [esp + 0x14]
mov esi, dword [ebp + 8]
mov ecx, dword [esp + 0x24]
push eax
push 3
push esi
call sub.MFC80U.DLL_Ordinal_5869
cmp dword [ebx + 0xe8], 0
jne 0x2046e97d
mov edx, dword [edi + 0x2e8]
lea ecx, [esp + 0x44]
push ecx
push 0
push 0x104c
push edx
mov dword [esp + 0x5c], 6
mov dword [esp + 0x70], 0xffffffff
mov dword [esp + 0x68], 0
call dword [sym.imp.USER32.dll_SendMessageW]
push 0xba
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_4026]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
push eax
push 6
push esi
call sub.MFC80U.DLL_Ordinal_5869
jmp 0x2046ec1d
imul eax, eax, 0xc2
add eax, dword [0x204a39a4]
jmp 0x2046e3bf
mov ecx, dword [edi + 0xbc]
xor esi, esi
cmp dword [edi + 0xa4], esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], 0xffffffff
jle 0x2046e9f9
test esi, esi
mov eax, dword [ebx + 0xe8]
jl 0x2046e368
cmp esi, dword [edi + 0xa4]
jge 0x2046e368
mov edx, dword [edi + 0xa0]
lea ecx, [edx + esi*8]
push eax
call dword [sym.imp.MFC80U.DLL_Ordinal_1472]
test eax, eax
je 0x2046e9d4
add esi, 1
cmp esi, dword [edi + 0xa4]
jl 0x2046e999
jmp 0x2046e9f9
cmp esi, dword [edi + 0xa4]
jge 0x2046e368
mov eax, dword [edi + 0xa0]
lea esi, [eax + esi*8]
mov esi, dword [esi + 4]
cmp esi, 0xffffffff
mov dword [esp + 0x2c], esi
jne 0x2046eb61
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
mov byte [esp + 0x4a0], 3
cmp dword [esp + 0x28], 0
mov eax, dword [ebx + 0xe8]
lea ecx, [esp + 0x20]
je 0x2046ea28
push ecx
push eax
call fcn.204647d0
add esp, 8
jmp 0x2046ea2f
push eax
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
push 2
push 0x204868ec
lea ecx, [esp + 0x28]
call dword [sym.imp.MFC80U.DLL_Ordinal_2461]
push eax
call dword [sym.imp.MSVCR80.dll_wcsncmp]
add esp, 0xc
test eax, eax
je 0x2046eb4f
mov esi, dword [esp + 0x20]
push 0x31
call dword [sym.imp.USER32.dll_GetSystemMetrics]
xor edx, edx
cmp eax, 0x10
setg dl
lea eax, [esp + 0x144]
sub edx, 1
and edx, 0xfffffffd
add edx, 4
or edx, 0x100
push edx
push 0x2b4
push eax
push 0
push esi
call dword [0x204a30e8]
mov ecx, dword [esp + 0x144]
test ecx, ecx
je 0x2046eb4f
mov eax, dword [edi + 0x98]
push ecx
push 0xffffffffffffffff
push eax
call sub.MFC80U.DLL_Ordinal_1079
mov ecx, dword [eax + 0x94]
mov ecx, dword [ecx]
call fcn.204353d0
mov esi, eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x2c], esi
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
mov byte [esp + 0x4a0], 5
mov eax, dword [ebx + 0xe8]
push eax
lea ecx, [esp + 0x34]
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
sub esp, 8
mov dword [esp + 0x3c], esi
mov esi, esp
lea edx, [esp + 0x38]
mov dword [esp + 0x8c], esp
push edx
mov ecx, esi
mov dword [esp + 0x8c], esi
call dword [sym.imp.MFC80U.DLL_Ordinal_280]
mov byte [esp + 0x4a8], 6
mov eax, dword [esp + 0x3c]
mov dword [esi + 4], eax
mov byte [esp + 0x4a8], 7
lea ecx, [edi + 0x9c]
push ecx
mov byte [esp + 0x4ac], 5
call fcn.20470400
mov edx, dword [esp + 0x144]
push edx
call dword [sym.imp.USER32.dll_DestroyIcon]
mov byte [esp + 0x4a0], 3
lea ecx, [esp + 0x30]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov byte [esp + 0x4a0], 1
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
mov byte [esp + 0x4a0], 9
mov ecx, dword [esp + 0x28]
test ecx, ecx
mov eax, dword [ebx + 0xe8]
push eax
je 0x2046eb8d
lea edx, [esp + 0x1c]
call fcn.20464180
jmp 0x2046eb97
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
lea edx, [esp + 0x44]
push edx
push 0
mov dword [esp + 0x60], eax
mov eax, dword [edi + 0x2e8]
push 0x104c
push eax
mov dword [esp + 0x5c], 6
mov dword [esp + 0x70], ecx
call esi
mov ecx, dword [esp + 0x18]
mov edx, dword [edi + 0x2e8]
push ecx
push 0
push 0x1057
push edx
call esi
mov ecx, dword [edi + 0x78]
add eax, 0x19
cmp ecx, eax
jle 0x2046ebed
mov eax, ecx
jmp 0x2046ec05
mov eax, dword [esp + 0x18]
mov ecx, dword [edi + 0x2e8]
push eax
push 0
push 0x1057
push ecx
call esi
add eax, 0x19
mov dword [edi + 0x78], eax
mov byte [esp + 0x4a0], 1
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov esi, dword [ebp + 8]
mov edi, dword [esp + 0x24]
lea edx, [ebx + 0xf4]
push edx
push 7
push esi
mov ecx, edi
call sub.MFC80U.DLL_Ordinal_5869
mov ebx, dword [ebx + 0xf0]
test ebx, ebx
jne 0x2046ec41
mov ebx, 0x20485878
push ebx
push 8
push esi
mov ecx, edi
call sub.MFC80U.DLL_Ordinal_5869
mov byte [esp + 0x4a0], 0
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov dword [esp + 0x4a0], 0xffffffff
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov ecx, dword [esp + 0x498]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x480]
xor ecx, esp
call fcn.20478952
mov esp, ebp
pop ebp
ret 4