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

Disassembly:
push 0xffffffffffffffff
push 0x4d98e0
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x51b260]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x51b260]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov eax, dword [esp + 0x90]
xor edi, edi
mov dword [esp + 0x2c], eax
mov eax, 0xf
mov esi, ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], edi
mov byte [esp + 0x64], 0
mov dword [esp + 0x88], edi
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], edi
mov byte [esp + 0x48], 0
mov eax, dword [esi + 0x234]
mov ecx, dword [esi + 0x238]
mov ebx, dword [esi + 0x1e0]
push edi
push edi
push eax
push ecx
lea ecx, [esi + 0x530]
push ecx
mov byte [esp + 0x9c], 1
mov dword [esp + 0x2c], ebx
call dword [sym.imp.user32.dll_SetRect]
cmp ebx, edi
je 0x46fc49
mov edx, dword [esi + 0x238]
mov eax, dword [esi + 0x234]
mov dword [esi + 0x1c4], edx
mov dword [esi + 0x1c8], eax
mov dword [esi + 0x1bc], edi
mov dword [esi + 0x1c0], edi
lea edi, [esi + 0x85c]
mov dword [esi + 0x52c], 1
mov ebx, dword [edi + 0x10]
cmp dword [edi + 0xc], ebx
jbe 0x46fc66
call fcn.0049eacd
mov ebp, dword [edi + 0xc]
mov ecx, dword [edi]
mov dword [esp + 0x24], ecx
cmp ebp, dword [edi + 0x10]
jbe 0x46fc79
call fcn.0049eacd
mov edx, dword [esp + 0x24]
mov eax, dword [edi]
push ebx
push edx
push ebp
push eax
lea eax, [esp + 0x34]
push eax
mov ecx, edi
call fcn.0043c220
xor ebx, ebx
cmp dword [esp + 0x18], ebx
jle 0x4702f7
jmp 0x46fca0
cmp ebx, dword [esi + 0x1e0]
jbe 0x46fcad
call fcn.0049eacd
mov ebp, 0x10
cmp dword [esi + 0x1e4], ebp
jb 0x46fcc2
mov eax, dword [esi + 0x1d0]
jmp 0x46fcc8
lea eax, [esi + 0x1d0]
mov cl, byte [eax + ebx]
lea edi, [ebx + 1]
mov byte [esp + 0x14], cl
cmp edi, dword [esi + 0x1e0]
jbe 0x46fcdf
call fcn.0049eacd
cmp dword [esi + 0x1e4], ebp
jb 0x46fcef
mov eax, dword [esi + 0x1d0]
jmp 0x46fcf5
lea eax, [esi + 0x1d0]
mov dl, byte [eax + edi]
push 0
push 0x4db6d7
lea ecx, [esp + 0x68]
mov byte [esp + 0x1d], dl
mov byte [esp + 0x1e], 0
call fcn.00401970
push 0
push 0x4db6d7
lea ecx, [esp + 0x4c]
call fcn.00401970
cmp byte [esp + 0x14], 0xff
jne 0x4700d9
cmp byte [esp + 0x15], 0xff
jne 0x4700d9
add ebx, 2
cmp ebx, dword [esi + 0x1e0]
jbe 0x46fd47
call fcn.0049eacd
cmp dword [esi + 0x1e4], ebp
jb 0x46fd57
mov eax, dword [esi + 0x1d0]
jmp 0x46fd5d
lea eax, [esi + 0x1d0]
movsx eax, byte [eax + ebx]
inc ebx
mov dword [esp + 0x24], eax
test eax, eax
jle 0x46fdf8
lea edi, [ebx + 1]
mov ebp, eax
cmp ebx, dword [esi + 0x1e0]
jbe 0x46fd80
call fcn.0049eacd
cmp dword [esi + 0x1e4], 0x10
jb 0x46fd91
mov eax, dword [esi + 0x1d0]
jmp 0x46fd97
lea eax, [esi + 0x1d0]
mov al, byte [eax + ebx]
mov byte [esp + 0x34], al
mov ecx, dword [esp + 0x34]
push ecx
push 1
lea ecx, [esp + 0x68]
call fcn.004017b0
cmp edi, dword [esi + 0x1e0]
jbe 0x46fdbb
call fcn.0049eacd
cmp dword [esi + 0x1e4], 0x10
jb 0x46fdcc
mov eax, dword [esi + 0x1d0]
jmp 0x46fdd2
lea eax, [esi + 0x1d0]
mov dl, byte [eax + edi]
mov byte [esp + 0x38], dl
mov eax, dword [esp + 0x38]
push eax
push 1
lea ecx, [esp + 0x68]
call fcn.004017b0
add ebx, 2
add edi, 2
sub ebp, 1
jne 0x46fd73
cmp ebx, dword [esi + 0x1e0]
jbe 0x46fe05
call fcn.0049eacd
cmp dword [esi + 0x1e4], 0x10
jb 0x46fe16
mov eax, dword [esi + 0x1d0]
jmp 0x46fe1c
lea eax, [esi + 0x1d0]
movsx ebp, byte [eax + ebx]
inc ebx
test ebp, ebp
jle 0x46feb7
lea edi, [ebx + 1]
mov dword [esp + 0x1c], ebp
cmp ebx, dword [esi + 0x1e0]
jbe 0x46fe3d
call fcn.0049eacd
cmp dword [esi + 0x1e4], 0x10
jb 0x46fe4e
mov eax, dword [esi + 0x1d0]
jmp 0x46fe54
lea eax, [esi + 0x1d0]
mov cl, byte [eax + ebx]
mov byte [esp + 0x3c], cl
mov edx, dword [esp + 0x3c]
push edx
push 1
lea ecx, [esp + 0x4c]
call fcn.004017b0
cmp edi, dword [esi + 0x1e0]
jbe 0x46fe78
call fcn.0049eacd
cmp dword [esi + 0x1e4], 0x10
jb 0x46fe89
mov eax, dword [esi + 0x1d0]
jmp 0x46fe8f
lea eax, [esi + 0x1d0]
mov al, byte [eax + edi]
mov byte [esp + 0x40], al
mov ecx, dword [esp + 0x40]
push ecx
push 1
lea ecx, [esp + 0x4c]
call fcn.004017b0
add ebx, 2
add edi, 2
sub dword [esp + 0x1c], 1
jne 0x46fe30
mov ecx, dword [esi + 0x48c]
mov eax, dword [esi + 0xc8]
add eax, ecx
imul eax, ebp
cdq
idiv dword [esp + 0x24]
mov edx, dword [esi + 0x528]
mov dword [esp + 0x1c], edx
mov dword [esi + 0x528], 1
mov edi, eax
lea eax, [ebp + 1]
imul eax, ecx
add eax, dword [esi + 0x1c4]
add eax, dword [esp + 0x30]
cmp eax, dword [esi + 0x23c]
jl 0x46ffce
mov ecx, dword [esi + 0x1bc]
cmp ecx, dword [esi + 0xb4]
jge 0x46ff7f
mov ecx, esi
call fcn.00466940
mov edx, dword [esi + 0x1b8]
add edx, 3
cmp dword [esp + 0x18], edx
jg 0x46ffce
mov edx, dword [esi + 0x490]
mov eax, dword [esi + 0x48c]
push edx
push eax
call fcn.00466800
xor edi, edi
mov dword [esi + 0x1b8], edi
mov esi, 0x10
cmp dword [esp + 0x5c], esi
jb 0x46ff5a
mov ecx, dword [esp + 0x48]
push ecx
call fcn.0048dd02
add esp, 4
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], edi
mov byte [esp + 0x48], 0
cmp dword [esp + 0x78], esi
jb 0x47033b
mov edx, dword [esp + 0x64]
push edx
jmp 0x470333
mov eax, dword [esi + 0x490]
mov ecx, dword [esi + 0x48c]
push eax
push ecx
mov ecx, esi
call fcn.00466800
cmp dword [esi + 0x1bc], 0
mov edx, dword [esi + 0x238]
mov dword [esi + 0x1c4], edx
je 0x46ffce
mov eax, 1
mov dword [esi + 0x204], eax
mov dword [esi + 0x208], eax
mov eax, dword [esi + 0x550]
cmp dword [esi + 0x54c], eax
je 0x46ffce
mov dword [esi + 0x54c], eax
mov eax, dword [esp + 0x2c]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x44], esp
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x88]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], 0
push edx
mov byte [ecx + 4], 0
call fcn.00401860
push ebp
push edi
mov ecx, esi
call fcn.00467510
add ebp, ebp
xor edi, edi
mov dword [esp + 0x24], ebp
test ebp, ebp
jle 0x4700ca
cmp edi, dword [esp + 0x58]
jbe 0x470023
call fcn.0049eacd
cmp dword [esp + 0x5c], 0x10
mov eax, dword [esp + 0x48]
jae 0x470032
lea eax, [esp + 0x48]
mov al, byte [eax + edi]
xor al, byte [esi + 0xfd9]
lea ebp, [edi + 1]
mov byte [esp + 0x14], al
cmp ebp, dword [esp + 0x58]
jbe 0x47004d
call fcn.0049eacd
cmp dword [esp + 0x5c], 0x10
mov eax, dword [esp + 0x48]
jae 0x47005c
lea eax, [esp + 0x48]
mov cl, byte [esi + 0xfd9]
add cl, byte [esi + 0x854]
push 0
xor cl, byte [eax + ebp]
mov eax, dword [esp + 0x98]
lea edx, [esp + 0x18]
push edx
mov byte [esp + 0x1d], cl
mov ecx, dword [esp + 0x34]
push eax
push ecx
mov ecx, esi
call fcn.0046ca50
mov edx, dword [esi + 0xc8]
add edx, dword [esi + 0x48c]
lea eax, [esp + 0x14]
add dword [esi + 0x1c4], edx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4700a3
sub eax, edx
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 0x874]
call fcn.00405b40
add edi, 2
cmp edi, dword [esp + 0x24]
jl 0x470018
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x528], ecx
jmp 0x4702ed
lea eax, [esp + 0x14]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4700e0
sub eax, edx
push eax
lea edx, [esp + 0x18]
lea edi, [esi + 0x874]
push edx
mov ecx, edi
call fcn.00405b40
add ebx, 2
cmp byte [esp + 0x14], 0xfe
je 0x470267
cmp byte [esp + 0x15], 0xfe
je 0x470267
cmp dword [esi + 0x230], 1
jne 0x470133
mov eax, dword [esi + 0x490]
mov ecx, dword [esi + 0x48c]
push eax
push ecx
mov ecx, esi
call fcn.00466800
mov al, byte [esi + 0xfd9]
mov dl, byte [esi + 0x858]
xor byte [esp + 0x14], al
mov ecx, dword [esp + 0x94]
add dl, al
push 0
dec dl
xor byte [esp + 0x19], dl
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x18]
push eax
push ecx
push edx
mov ecx, esi
call fcn.0046ca50
mov edx, dword [esi + 0xd4]
mov eax, dword [esi + 0x48c]
mov ecx, dword [esi + 0x1c4]
add edx, edx
lea ebp, [ecx + eax*2]
add ebp, edx
cmp ebp, dword [esi + 0x23c]
mov dword [esp + 0x30], edx
mov dword [esp + 0x20], 0
jl 0x470252
mov ecx, dword [esi + 0x490]
add ecx, dword [esi + 0xcc]
mov edx, dword [esi + 0x1c8]
mov eax, dword [esi + 0x238]
add ecx, edx
cmp ecx, dword [esi + 0x240]
mov dword [esi + 0x1c4], eax
jge 0x470364
mov eax, dword [esi + 0x1bc]
cmp eax, dword [esi + 0xb4]
jge 0x470404
inc dword [esi + 0x1c0]
inc eax
cmp ebx, dword [esp + 0x18]
mov dword [esi + 0x1c8], ecx
mov dword [esi + 0x1bc], eax
jle 0x4702f1
lea ebp, [esi + 0x1cc]
push ebx
mov ecx, ebp
call fcn.00401460
mov al, byte [eax]
lea ecx, [ebx + 1]
push ecx
mov ecx, ebp
mov byte [esp + 0x18], al
call fcn.00401460
mov dl, byte [eax]
push edi
lea ecx, [esi + 0x85c]
mov byte [esp + 0x19], dl
mov byte [esp + 0x1a], 0
call fcn.004038b0
mov eax, dword [esi + 0x888]
push eax
push 0
mov ecx, edi
call fcn.00401550
cmp byte [esp + 0x14], 0xfe
je 0x47024a
cmp byte [esp + 0x15], 0xfe
jne 0x4702ed
add ebx, 2
jmp 0x4702ed
mov edx, dword [esi + 0xc8]
add edx, ecx
add edx, eax
mov dword [esi + 0x1c4], edx
jmp 0x4702ed
cmp dword [esp + 0x20], 0
jne 0x4702ed
mov ecx, dword [esi + 0x490]
add ecx, dword [esi + 0xcc]
mov eax, dword [esi + 0x238]
add dword [esi + 0x1c8], ecx
mov ebp, 1
add dword [esi + 0x1bc], ebp
add dword [esi + 0x1c0], ebp
push edi
lea ecx, [esi + 0x85c]
mov dword [esi + 0x1c4], eax
call fcn.004038b0
mov edx, dword [esi + 0x888]
push edx
push 0
mov ecx, edi
call fcn.00401550
mov eax, dword [esi + 0x1bc]
cmp eax, dword [esi + 0xb4]
mov dword [esp + 0x20], ebp
jg 0x470473
mov ecx, dword [esi + 0x490]
add ecx, dword [esi + 0x1c8]
add ecx, dword [esi + 0xcc]
cmp ecx, dword [esi + 0x240]
jge 0x4704ed
cmp ebx, dword [esp + 0x18]
jl 0x46fca0
xor edi, edi
mov dword [esi + 0x52c], edi
mov esi, 0x10
cmp dword [esp + 0x5c], esi
jb 0x470317
mov edx, dword [esp + 0x48]
push edx
call fcn.0048dd02
add esp, 4
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], edi
mov byte [esp + 0x48], 0
cmp dword [esp + 0x78], esi
jb 0x47033b
mov eax, dword [esp + 0x64]
push eax
call fcn.0048dd02
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0049ef0f
add esp, 0x78
ret 8
mov ebx, 1
cmp dword [esi + 0x230], ebx
jne 0x470386
mov eax, dword [esi + 0x490]
mov ecx, dword [esi + 0x48c]
push eax
push ecx
mov ecx, esi
call fcn.00466800
mov ecx, esi
call fcn.004666a0
xor edi, edi
cmp dword [esi + 0x1bc], edi
je 0x4703b7
mov eax, dword [esi + 0x550]
mov dword [esi + 0x204], ebx
mov dword [esi + 0x208], ebx
cmp dword [esi + 0x54c], eax
je 0x4703b7
mov dword [esi + 0x54c], eax
mov dword [esi + 0x52c], edi
mov esi, 0x10
cmp dword [esp + 0x5c], esi
jb 0x4703d5
mov edx, dword [esp + 0x48]
push edx
call fcn.0048dd02
add esp, 4
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], edi
mov byte [esp + 0x48], 0
cmp dword [esp + 0x78], esi
jb 0x47057f
mov eax, dword [esp + 0x64]
push eax
call fcn.0048dd02
add esp, 4
mov eax, ebx
jmp 0x470340
cmp dword [esi + 0x230], 1
jne 0x470422
mov ecx, dword [esi + 0x490]
mov edx, dword [esi + 0x48c]
push ecx
push edx
mov ecx, esi
call fcn.00466800
mov ecx, esi
call fcn.004666a0
call fcn.00432850
xor edi, edi
mov dword [esi + 0x52c], edi
mov esi, 0x10
cmp dword [esp + 0x5c], esi
jb 0x47044e
mov eax, dword [esp + 0x48]
push eax
call fcn.0048dd02
add esp, 4
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], edi
mov byte [esp + 0x48], 0
cmp dword [esp + 0x78], esi
jb 0x47033b
mov ecx, dword [esp + 0x64]
push ecx
jmp 0x470333
mov ecx, esi
call fcn.004666a0
xor edi, edi
cmp dword [esi + 0x1bc], edi
je 0x4704a4
mov eax, dword [esi + 0x550]
mov dword [esi + 0x204], ebp
mov dword [esi + 0x208], ebp
cmp dword [esi + 0x54c], eax
je 0x4704a4
mov dword [esi + 0x54c], eax
mov dword [esi + 0x52c], edi
mov esi, 0x10
cmp dword [esp + 0x5c], esi
jb 0x4704c2
mov edx, dword [esp + 0x48]
push edx
call fcn.0048dd02
add esp, 4
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], edi
mov byte [esp + 0x48], 0
cmp dword [esp + 0x78], esi
jb 0x4704e6
mov eax, dword [esp + 0x64]
push eax
call fcn.0048dd02
add esp, 4
mov eax, ebp
jmp 0x470340
mov ebx, ebp
cmp dword [esi + 0x230], ebx
jne 0x47050c
mov ecx, dword [esi + 0x490]
mov edx, dword [esi + 0x48c]
push ecx
push edx
mov ecx, esi
call fcn.00466800
mov ecx, esi
call fcn.004666a0
xor edi, edi
cmp dword [esi + 0x1bc], edi
je 0x47053d
mov eax, dword [esi + 0x550]
mov dword [esi + 0x204], ebx
mov dword [esi + 0x208], ebx
cmp dword [esi + 0x54c], eax
je 0x47053d
mov dword [esi + 0x54c], eax
mov dword [esi + 0x52c], edi
mov esi, 0x10
cmp dword [esp + 0x5c], esi
jb 0x47055b
mov eax, dword [esp + 0x48]
push eax
call fcn.0048dd02
add esp, 4
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], edi
mov byte [esp + 0x48], 0
cmp dword [esp + 0x78], esi
jb 0x47057f
mov ecx, dword [esp + 0x64]
push ecx
call fcn.0048dd02
add esp, 4
mov eax, ebx
jmp 0x470340