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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x506ba5
push eax
mov dword fs:[0], esp
sub esp, 0x288
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
cmp dword [esi + 0xb4], ebp
je 0x4235ba
mov eax, dword [esi + 0xc0]
mov edx, dword [esp + 0x2a8]
mov ecx, eax
mov dword [esp + 0x2c], ebp
neg ecx
sbb ecx, ecx
mov dword [esp + 0x28], ebp
and ecx, edx
mov dword [esp + 0x2a8], ecx
je 0x422adf
mov eax, dword [eax + 0x88]
mov dword [esp + 0x2c], eax
mov ecx, esi
mov dword [esi + 0xc0], ebp
call fcn.00422820
push 0x3fd
mov ecx, esi
call fcn.004e92e2
push 1
push 1
push 1
push 1
lea ecx, [esp + 0x74]
mov edi, eax
call fcn.004f35d8
mov edx, dword [edi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_GetClientRect]
lea ecx, [esp + 0x64]
push ecx
push edx
call ebx
lea eax, [esp + 0x64]
mov ecx, edi
push eax
call fcn.004ee3f9
lea ecx, [esp + 0x64]
push ecx
mov ecx, esi
call fcn.004ee3bd
push 0x3fe
mov ecx, esi
call fcn.004e92e2
push 1
push 1
push 1
push 1
lea ecx, [esp + 0x88]
mov edi, eax
call fcn.004f35d8
mov eax, dword [edi + 0x1c]
lea edx, [esp + 0x78]
push edx
push eax
call ebx
lea ecx, [esp + 0x78]
push ecx
mov ecx, edi
call fcn.004ee3f9
lea edx, [esp + 0x78]
mov ecx, esi
push edx
call fcn.004ee3bd
mov eax, dword [esi + 0xb4]
add eax, 0x18
mov edx, dword [eax + 4]
cmp edx, ebp
jne 0x422b8d
xor ebp, ebp
jmp 0x422ba7
mov ecx, dword [eax + 8]
mov eax, 0x92492493
sub ecx, edx
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov ebp, edx
mov ecx, dword [esi + 0xb8]
mov eax, ebp
xor edx, edx
div ecx
mov edx, eax
mov dword [esi + 0xe4], eax
imul edx, ecx
cmp edx, ebp
jne 0x422bc9
dec eax
mov dword [esi + 0xe4], eax
mov eax, dword [esi + 0xe4]
xor edi, edi
cmp eax, edi
jg 0x422bdf
mov dword [esi + 0xe4], 1
mov eax, dword [esi + 0xe4]
mov ecx, dword [esi + 0xe0]
cmp ecx, eax
jl 0x422bf6
dec eax
mov dword [esi + 0xe0], eax
mov ecx, esi
call fcn.004246c0
mov eax, dword [esi + 0xb8]
mov ecx, eax
imul ecx, dword [esi + 0xe0]
sub ebp, ecx
mov dword [esp + 0x10], ebp
je 0x4235ba
mov ebx, eax
mov dword [esp + 0x48], ebx
lea eax, [ebx + ebx]
cmp ebp, eax
jbe 0x422c2b
mov ebp, eax
mov dword [esp + 0x10], ebp
call fcn.0043bcd0
cmp ebx, 0x20
mov dword [esp + 0x4c], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], edi
jbe 0x422c4a
mov ebx, 0x20
mov dword [esp + 0x48], ebx
cmp dword [esi + 0xe4], 1
jle 0x422d17
mov edi, ebx
imul edi, dword [esi + 0xe0]
lea edx, [edi + ebp]
cmp edi, edx
jae 0x422da8
lea eax, [esp + 0x218]
lea ecx, [esp + 0x198]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0xb8]
cmp edx, eax
jae 0x422ca3
mov eax, dword [esp + 0x10]
inc edx
mov dword [esp + 0x18], edx
mov dword [eax], edi
add eax, 4
mov dword [esp + 0x10], eax
jmp 0x422cb9
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
inc edx
mov dword [eax], edi
add eax, 4
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2a8]
test eax, eax
je 0x422cfe
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x422cfe
mov ecx, dword [esi + 0xb4]
lea eax, [esp + 0x9c]
push edi
push eax
call fcn.00421f20
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x2c]
xor ecx, ecx
cmp eax, edx
sete cl
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x9c]
call fcn.0041de40
mov edx, ebx
inc edi
imul edx, dword [esi + 0xe0]
add edx, ebp
cmp edi, edx
jb 0x422c81
jmp 0x422da8
xor edi, edi
test ebp, ebp
jbe 0x422da8
lea ebx, [esp + 0x218]
lea ebp, [esp + 0x198]
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0xb8]
cmp eax, ecx
jae 0x422d4c
mov ecx, eax
mov dword [ebp], edi
inc ecx
add ebp, 4
mov dword [esp + 0x18], ecx
jmp 0x422d5a
mov ecx, dword [esp + 0x20]
mov dword [ebx], edi
inc ecx
add ebx, 4
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x2a8]
test eax, eax
je 0x422d9f
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x422d9f
lea ecx, [esp + 0x9c]
push edi
push ecx
mov ecx, dword [esi + 0xb4]
call fcn.00421f20
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x2c]
xor edx, edx
cmp eax, ecx
sete dl
lea ecx, [esp + 0x9c]
mov dword [esp + 0x28], edx
call fcn.0041de40
mov eax, dword [esp + 0x10]
inc edi
cmp edi, eax
jb 0x422d2f
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x64]
mov ebp, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x70]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x198]
mov dword [esp + 0x54], ebp
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x10]
cmp eax, 1
mov dword [esp + 0x58], ecx
mov dword [esp + 0x1c], edx
jne 0x422e1d
mov ecx, dword [esp + 0x78]
mov ebp, dword [esp + 0x7c]
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x84]
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x218]
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x44], ecx
fld qword [0x550ce8]
fmul qword [0x5128e8]
call fcn.004b50f0
sub edi, ebp
mov ebx, eax
mov eax, edi
mov edi, dword [esp + 0x48]
mov ecx, ebx
xor edx, edx
imul ecx, edi
sub eax, ecx
mov ecx, dword [esp + 0x1c]
div edi
test ecx, ecx
mov dword [esp + 0x40], 0
jbe 0x4235a8
add eax, ebx
mov dword [esp + 0x60], eax
push 0xb38
call fcn.004e5c1a
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
mov dword [esp + 0x2a0], 0
je 0x422e88
mov ecx, eax
call fcn.0041eb10
mov edi, eax
jmp 0x422e8a
xor edi, edi
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x40]
mov dword [edi + 0xb34], 3
mov dword [esp + 0x88], edx
mov edx, dword [esp + 0x60]
mov ebx, dword [esp + 0x54]
mov eax, edx
mov dword [esp + 0x2a0], 0xffffffff
imul eax, ecx
add eax, ebx
mov ebx, dword [esp + 0x58]
mov dword [esp + 0x8c], eax
add edx, eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], edx
mov ebp, dword [eax + ecx*4]
mov eax, dword [esi + 0x5c]
test eax, eax
jne 0x422ef8
mov ecx, dword [esi + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x423066
mov eax, dword [esi + 0x64]
test eax, eax
jne 0x423063
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x5c]
test eax, eax
jne 0x422f29
mov ecx, dword [esi + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.004ed95b
test eax, eax
mov dword [esp + 0x14], eax
je 0x422f34
mov eax, dword [eax + 4]
push eax
lea ebx, [esi + 0x60]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, ebx
call fcn.004ed970
test eax, eax
je 0x423066
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
sub eax, ecx
mov ecx, dword [esp + 0x38]
sub ecx, ebx
push eax
mov eax, dword [edx + 4]
push ecx
push eax
lea ebx, [esi + 0x70]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, ebx
call fcn.004eec57
test eax, eax
je 0x423066
mov eax, dword [esi + 0x5c]
test eax, eax
jne 0x422f9e
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0x1c]
mov edx, dword [ecx + 4]
push edx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
test ebx, ebx
je 0x422fa5
mov ebx, dword [ebx + 4]
mov ecx, dword [esi + 0x64]
push ebx
push ecx
call fcn.004edae9
mov edx, dword [esi + 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.004e617d
mov ebx, eax
test ebx, ebx
je 0x422fdd
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.004ee3f9
lea ecx, [esp + 0x30]
push ecx
mov ecx, ebx
call fcn.004ee3bd
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x423055
push 0
push 0
push 0
push 0
lea ecx, [esp + 0xac]
call fcn.00405100
lea ebx, [esi + 0x78]
push eax
push ebx
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
jne 0x423024
mov edx, dword [ebx]
mov ecx, dword [ebx + 4]
mov eax, dword [ebx + 8]
mov ebx, dword [ebx + 0xc]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ebx
jmp 0x423030
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push 0xcc0020
push ecx
push edx
mov edx, dword [esi + 0x5c]
sub ebx, ecx
push edx
push ebx
mov ebx, dword [esp + 0x44]
lea ecx, [esi + 0x60]
sub eax, ebx
push eax
push 0
push 0
call fcn.004051b0
mov edx, dword [esi]
lea eax, [esi + 0x60]
push eax
mov ecx, esi
call dword [edx + 0xd0]
lea eax, [esi + 0x60]
mov dword [edi + 0x3c], eax
mov eax, dword [edi + 0x44]
test eax, eax
je 0x423087
lea ecx, [edi + 0x40]
call fcn.004ed9d8
mov eax, dword [edi + 0x54]
test eax, eax
je 0x423087
lea ecx, [edi + 0x50]
call fcn.004eecae
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc4]
mov ecx, dword [edi + 0xab0]
mov eax, 1
cmp ecx, eax
je 0x4230cc
mov ecx, dword [edi + 0x1c]
mov dword [edi + 0xab0], eax
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4230cc
mov edx, dword [edi + 0x1c]
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [edi + 0x1c]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
push 2
mov ecx, edi
call fcn.0041fcb0
lea ecx, [esp + 0x128]
push ebp
push ecx
mov ecx, dword [esi + 0xb4]
call fcn.00421f20
lea edx, [esp + 0x74]
mov ecx, eax
push edx
mov dword [esp + 0x2a4], 1
call fcn.00407270
mov eax, dword [eax]
push 0
lea ecx, [esp + 0x8c]
push esi
push ecx
push 0x50010000
push eax
mov ecx, edi
mov byte [esp + 0x2b4], 2
call fcn.004f2a88
lea ecx, [esp + 0x74]
mov byte [esp + 0x2a0], 1
call fcn.004e5549
lea ecx, [esp + 0x128]
mov dword [esp + 0x2a0], 0xffffffff
call fcn.0041de40
mov ecx, dword [esi + 0xb4]
lea edx, [esp + 0xf0]
push ebp
push edx
call fcn.00421f20
mov ecx, dword [eax + 4]
cmp ecx, 0xf00000
lea ecx, [esp + 0xf0]
setae bl
call fcn.0041de40
test bl, bl
push ebp
je 0x4231c7
mov ecx, dword [esi + 0xb4]
lea eax, [esp + 0x164]
push eax
call fcn.00421f20
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x4c]
or ebx, 0xffffffff
mov dword [esp + 0x2a0], 3
push ebx
push eax
call fcn.0043df10
push eax
mov ecx, edi
call fcn.00420ea0
lea ecx, [esp + 0x160]
mov dword [esp + 0x2a0], ebx
call fcn.0041de40
jmp 0x42320e
lea ecx, [esp + 0xbc]
push ecx
mov ecx, dword [esi + 0xb4]
call fcn.00421f20
mov eax, dword [eax + 0x14]
push 0
push 0xffffffffffffffff
push eax
mov ecx, edi
mov dword [esp + 0x2ac], 4
call fcn.0041f020
lea ecx, [esp + 0xb8]
mov dword [esp + 0x2a0], 0xffffffff
call fcn.0041de40
or ebx, 0xffffffff
mov ecx, dword [esi + 0xb4]
lea edx, [esp + 0x17c]
push ebp
push edx
call fcn.00421f20
mov eax, dword [eax + 4]
mov ecx, edi
push eax
push 0x8012
push 0x8011
push 0x8010
mov dword [esp + 0x2b0], 5
call fcn.00420820
lea ecx, [esp + 0x17c]
mov dword [esp + 0x2a0], ebx
call fcn.0041de40
mov ecx, dword [esi + 0xb4]
lea eax, [esp + 0xd4]
push ebp
push eax
call fcn.00421f20
push ecx
mov dword [esp + 0x2a4], 6
mov ecx, esp
mov dword [esp + 0x28], esp
push ecx
mov ecx, eax
call fcn.00407290
mov ecx, edi
call fcn.004071f0
lea ecx, [esp + 0xd4]
mov dword [esp + 0x2a0], ebx
call fcn.0041de40
mov ecx, dword [esi + 0xb4]
lea edx, [esp + 0x10c]
push ebp
push edx
call fcn.00421f20
push ecx
mov dword [esp + 0x2a4], 7
mov ecx, esp
mov dword [esp + 0x28], esp
push ecx
mov ecx, eax
call fcn.00423630
mov ecx, edi
call fcn.004235e0
lea ecx, [esp + 0x10c]
mov dword [esp + 0x2a0], ebx
call fcn.0041de40
mov ecx, edi
call fcn.00420560
mov edx, dword [esi + 0x1c]
push 0
push 0
push 0x31
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
call fcn.004eec42
push eax
mov ecx, edi
call fcn.00420280
push 0xffffff
push 0xf7dfd6
mov ecx, edi
mov dword [edi + 0x8c], 1
call fcn.00420260
mov eax, dword [esp + 0x2a8]
test eax, eax
je 0x423363
mov eax, dword [esp + 0x28]
test eax, eax
je 0x423363
mov eax, dword [esp + 0x2c]
mov ecx, dword [edi + 0x88]
cmp ecx, eax
push 1
mov ecx, edi
jne 0x42335e
call fcn.00420870
mov dword [esi + 0xc0], edi
jmp 0x423363
call fcn.004208c0
push 0x50
call fcn.004e5c1a
add esp, 4
lea ecx, [esp + 0x144]
mov ebx, eax
push ebp
push ecx
mov ecx, dword [esi + 0xb4]
call fcn.00421f20
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x4c]
push 0x14
push eax
push ebx
mov dword [esp + 0x2ac], 8
call fcn.0043ce10
lea ecx, [esp + 0x144]
mov ebp, eax
mov dword [esp + 0x2a0], 0xffffffff
call fcn.0041de40
push ebx
call fcn.004e5c43
add esp, 4
test ebp, ebp
jg 0x4233cd
push 0
mov ecx, edi
call fcn.0041fc70
mov ebp, dword [esi + 0xac]
mov edx, dword [esi + 0xb0]
sub edx, ebp
mov ebx, ebp
sar edx, 2
cmp edx, 1
mov dword [esp + 0x24], ebx
jae 0x4234c7
mov ecx, dword [esi + 0xa8]
test ecx, ecx
je 0x423403
mov eax, ebp
sub eax, ecx
sar eax, 2
cmp eax, 1
ja 0x423408
mov eax, 1
test ecx, ecx
jne 0x423410
xor ebp, ebp
jmp 0x423415
sub ebp, ecx
sar ebp, 2
add eax, ebp
test eax, eax
mov dword [esp + 0x14], eax
jge 0x423421
xor eax, eax
shl eax, 2
push eax
call fcn.004e5c1a
mov ecx, dword [esi + 0xa8]
add esp, 4
cmp ecx, ebx
mov ebp, eax
je 0x42344b
test eax, eax
je 0x423441
mov edx, dword [ecx]
mov dword [eax], edx
add ecx, 4
add eax, 4
cmp ecx, ebx
jne 0x423439
test eax, eax
je 0x423451
mov dword [eax], edi
mov edx, dword [esi + 0xac]
lea ecx, [eax + 4]
cmp ebx, edx
je 0x423478
mov edi, ecx
sub edi, eax
lea eax, [edi + ebx - 4]
test ecx, ecx
je 0x42346e
mov edi, dword [eax]
mov dword [ecx], edi
add eax, 4
add ecx, 4
cmp eax, edx
jne 0x423466
mov eax, dword [esi + 0xa8]
push eax
mov dword [esp + 0x28], eax
call fcn.004e5c43
mov eax, dword [esp + 0x18]
add esp, 4
lea ecx, [ebp + eax*4]
mov dword [esi + 0xb0], ecx
mov ecx, dword [esi + 0xa8]
test ecx, ecx
jne 0x4234a7
xor eax, eax
jmp 0x4234b2
mov eax, dword [esi + 0xac]
sub eax, ecx
sar eax, 2
lea edx, [ebp + eax*4 + 4]
mov dword [esi + 0xa8], ebp
mov dword [esi + 0xac], edx
jmp 0x423593
mov eax, ebp
sub eax, ebx
sar eax, 2
cmp eax, 1
jae 0x423528
cmp ebx, ebp
lea eax, [ebx + 4]
je 0x4234ef
lea ecx, [eax - 4]
test eax, eax
je 0x4234e5
mov edx, dword [ecx]
mov dword [eax], edx
add ecx, 4
add eax, 4
cmp ecx, ebp
jne 0x4234dd
mov ecx, dword [esi + 0xac]
mov eax, 1
mov edx, ecx
sub edx, ebx
sar edx, 2
sub eax, edx
je 0x423511
test ecx, ecx
je 0x42350b
mov dword [ecx], edi
add ecx, 4
dec eax
jne 0x423505
mov ecx, dword [esi + 0xac]
mov eax, ebx
cmp ebx, ecx
je 0x42358c
mov dword [eax], edi
add eax, 4
cmp eax, ecx
jne 0x42351d
jmp 0x42358c
lea ebx, [ebp - 4]
mov dword [esp + 0x14], ebp
cmp ebx, ebp
mov dword [esp + 0x98], ebx
je 0x42355a
mov eax, dword [esp + 0x14]
push ebx
push eax
call fcn.00425270
mov edx, dword [esp + 0x1c]
add ebx, 4
add esp, 8
add edx, 4
cmp ebx, ebp
mov dword [esp + 0x14], edx
jne 0x42353a
mov ecx, dword [esi + 0xac]
mov edx, dword [esp + 0x24]
lea eax, [ecx - 4]
cmp edx, eax
je 0x42357a
mov ebx, dword [eax - 4]
sub eax, 4
sub ecx, 4
cmp eax, edx
mov dword [ecx], ebx
jne 0x42356b
lea ecx, [edx + 4]
mov eax, edx
cmp edx, ecx
je 0x42358c
mov dword [eax], edi
add eax, 4
cmp eax, ecx
jne 0x423583
add dword [esi + 0xac], 4
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x1c]
inc eax
cmp eax, ecx
mov dword [esp + 0x40], eax
jb 0x422e5d
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 2
mov dword [esp + 0x10], eax
jb 0x422db0
mov ecx, dword [esp + 0x298]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x294
ret 4