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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x688458
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push esi
push edi
mov edi, dword [esp + 0x74]
mov esi, ecx
push edi
call fcn.005323e0
test eax, eax
je 0x5312d5
mov dword [esi + 0x46c], 1
xor ebx, ebx
push edi
mov ecx, esi
mov dword [esp + 0x14], ebx
call fcn.00531b80
lea ecx, [esp + 0x48]
mov dword [esp + 0x14], eax
call fcn.00486040
mov eax, dword [edi + 0xc]
mov dword [esp + 0x6c], ebx
neg eax
sbb eax, eax
cmp eax, ebx
mov dword [esp + 0x1c], eax
je 0x5317dc
push ebp
lea eax, [esp + 0x12]
lea ecx, [esp + 0x24]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
mov ecx, edi
mov byte [esp + 0x1e], 0
call fcn.00406e83
mov edi, dword [esp + 0x24]
push edi
call fcn.00531930
mov ebp, eax
lea eax, [edi + 0x10]
add esp, 4
cmp eax, 0x8e
ja case.0x531348.1
xor ecx, ecx
mov cl, byte [eax + 0x53189c]
jmp dword [ecx*4 + 0x53185c]
mov ecx, dword [esi + 0x40c]
lea edx, [esp + 0x2c]
push edx
push 0x18
call fcn.006105b0
cmp eax, ebx
je 0x53136a
cmp dword [eax + 0xc], ebx
jne 0x531399
mov ecx, dword [esi + 0x40c]
lea eax, [esp + 0x30]
push eax
push 0x4b
call fcn.006105b0
cmp eax, ebx
je 0x531395
cmp dword [eax + 0xc], ebx
je 0x531395
mov edx, dword [esi]
push 0xe
mov ecx, esi
call dword [edx + 0x120]
test eax, eax
je 0x531399
xor eax, eax
jmp 0x53139e
mov eax, 1
mov ecx, dword [esp + 0x18]
or ecx, eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x18], ecx
push eax
push 6
mov ecx, esi
call fcn.00532240
lea ecx, [esp + 0x4c]
push ecx
push 5
mov ecx, esi
call fcn.00532240
lea edx, [esp + 0x4c]
mov ecx, esi
push edx
push 0xe
call fcn.00532240
mov ecx, dword [esi + 0x40c]
lea eax, [esp + 0x34]
push eax
push 0xf
call fcn.006105b0
cmp eax, ebx
je 0x5313fb
cmp dword [eax + 0xc], ebx
je 0x5313fb
lea ecx, [esp + 0x4c]
push ecx
push 2
mov ecx, esi
call fcn.00532240
mov edx, dword [esi + 0x42c]
cmp dword [edx - 8], ebx
je case.0x531348.15
lea eax, [esp + 0x4c]
mov ecx, esi
push eax
push 9
call fcn.00532240
jmp case.0x531348.15
lea ecx, [esp + 0x4c]
push ecx
push 5
mov ecx, esi
call fcn.00532240
test eax, eax
jne case.0x531348.15
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x120]
mov dword [esp + 0x14], eax
jmp case.0x531348.15
cmp dword [esp + 0x18], ebx
jne case.0x531348.15
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x120]
cmp eax, ebx
mov dword [esp + 0x14], eax
jne case.0x531348.15
mov ecx, dword [esi + 0x40c]
lea edx, [esp + 0x38]
push edx
push 0x14
call fcn.006105b0
cmp eax, ebx
je case.0x531348.15
cmp dword [eax + 0xc], ebx
je case.0x531348.15
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x120]
mov dword [esp + 0x14], eax
jmp case.0x531348.15
lea ecx, [esp + 0x4c]
push ecx
push ebp
mov ecx, esi
call fcn.00532240
jmp case.0x531348.15
lea edx, [esp + 0x4c]
mov ecx, esi
push edx
push 4
call fcn.00532240
lea eax, [esp + 0x4c]
mov ecx, esi
push eax
push 5
call fcn.00532240
jmp case.0x531348.15
lea ecx, [esp + 0x4c]
push ecx
push 2
mov ecx, esi
call fcn.00532240
mov ebp, dword [esp + 0x14]
mov ecx, dword [esi + 0x40c]
neg eax
sbb eax, eax
lea edx, [esp + 0x3c]
inc eax
push edx
or ebp, eax
push 0x39
mov dword [esp + 0x1c], ebp
call fcn.006105b0
cmp eax, ebx
je 0x531526
cmp dword [eax + 0xc], ebx
je 0x531526
lea eax, [esp + 0x4c]
mov ecx, esi
push eax
push 0x1b
call fcn.00532240
neg eax
sbb eax, eax
mov ecx, ebp
inc eax
or ecx, eax
mov dword [esp + 0x14], ecx
cmp dword [esp + 0x14], ebx
je case.0x531348.15
mov ecx, dword [esi + 0x40c]
lea edx, [esp + 0x40]
jmp 0x5315a3
lea eax, [esp + 0x4c]
mov ecx, esi
push eax
push 3
call fcn.00532240
mov ebp, dword [esp + 0x14]
mov ecx, dword [esi + 0x40c]
neg eax
sbb eax, eax
lea edx, [esp + 0x44]
inc eax
push edx
or ebp, eax
push 0x39
mov dword [esp + 0x1c], ebp
call fcn.006105b0
cmp eax, ebx
je 0x53158f
cmp dword [eax + 0xc], ebx
je 0x53158f
lea eax, [esp + 0x4c]
mov ecx, esi
push eax
push 0x1b
call fcn.00532240
neg eax
sbb eax, eax
mov ecx, ebp
inc eax
or ecx, eax
mov dword [esp + 0x14], ecx
cmp dword [esp + 0x14], ebx
je case.0x531348.15
mov ecx, dword [esi + 0x40c]
lea edx, [esp + 0x48]
push edx
push 0x24
call fcn.006105b0
cmp eax, ebx
je 0x5315c1
cmp dword [eax + 0xc], ebx
je 0x5315c1
mov dword [esp + 0x14], 1
jmp case.0x531348.15
mov dword [esp + 0x14], ebx
jmp case.0x531348.15
cmp dword [esp + 0x18], ebx
jne case.0x531348.15
mov eax, dword [esi]
push ebp
mov ecx, esi
call dword [eax + 0x120]
mov dword [esp + 0x14], eax
jmp case.0x531348.15
mov edx, dword [esi]
push 0x1c
mov ecx, esi
call dword [edx + 0x120]
test eax, eax
je case.0x531348.9
mov dword [esp + 0x14], 1
jmp case.0x531348.15
mov eax, dword [esi]
push 0x1f
mov ecx, esi
call dword [eax + 0x120]
mov dword [esp + 0x14], eax
jmp case.0x531348.15
mov dword [esp + 0x18], 1
jmp case.0x531348.15
lea ecx, [esp + 0x4c]
push ecx
push 0xc
mov ecx, esi
call fcn.00532240
lea edx, [esp + 0x4c]
mov ecx, esi
push edx
push 0x16
call fcn.00532240
lea eax, [esp + 0x4c]
mov ecx, esi
push eax
push 2
call fcn.00532240
lea ecx, [esp + 0x4c]
push ecx
push 3
mov ecx, esi
call fcn.00532240
mov eax, dword [esi + 0x41c]
xor edi, edi
cmp dword [eax + 8], ebx
jle 0x53169e
mov eax, dword [eax + 4]
lea ebp, [eax + ebx]
mov ecx, ebp
call fcn.004a13f0
test eax, eax
je 0x53168d
mov ebp, dword [ebp + 0x44]
lea edx, [esp + 0x4c]
push edx
push ebp
mov ecx, esi
call fcn.00532240
mov eax, dword [esi + 0x41c]
inc edi
add ebx, 0x70
cmp edi, dword [eax + 8]
jl 0x53166c
xor ebx, ebx
mov ecx, esi
call fcn.00528260
jmp case.0x531348.15
mov eax, dword [esi]
push 0xc
mov ecx, esi
call dword [eax + 0x120]
mov dword [esp + 0x14], eax
jmp case.0x531348.15
mov edi, dword [esp + 0x50]
mov ebp, dword [esi + 0x418]
cmp edi, ebx
je 0x5316eb
mov eax, dword [esp + 0x54]
cmp eax, ebx
jbe 0x5316eb
mov ecx, edi
mov edx, eax
mov eax, dword [ecx]
cmp eax, ebx
je 0x5316e5
mov eax, dword [eax]
cmp eax, ebx
jne 0x5316df
add ecx, 4
dec edx
jne 0x5316d9
push edi
call sub.MFC42u.DLL_operatordelete
mov ecx, dword [esp + 0x64]
add esp, 4
mov dword [esp + 0x50], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
call sub.MFC42u.DLL_CPlex::FreeDataChain
mov dword [esp + 0x60], ebx
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je case.0x531348.15
neg eax
sbb eax, eax
cmp eax, ebx
mov dword [esp + 0x1c], eax
je case.0x531348.15
lea ecx, [esp + 0x13]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
mov ecx, ebp
mov byte [esp + 0x1f], 0
call fcn.00406e83
mov ecx, dword [esp + 0x28]
push ecx
lea ecx, [esp + 0x50]
call fcn.004fda10
mov byte [eax], 0
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x531728
jmp case.0x531348.15
push ebp
call fcn.004a1b50
add esp, 4
test eax, eax
je case.0x531348.15
mov ecx, dword [esp + 0x54]
mov eax, ebp
shr eax, 4
xor edx, edx
div ecx
mov eax, dword [esp + 0x50]
cmp eax, ebx
mov edi, edx
je 0x53179c
mov eax, dword [eax + edi*4]
cmp eax, ebx
je 0x5317a8
cmp dword [eax + 8], ebp
je 0x531796
mov eax, dword [eax]
cmp eax, ebx
jne 0x531789
jmp 0x5317a8
cmp eax, ebx
jne 0x5317c7
jmp 0x5317a8
push 1
push ecx
lea ecx, [esp + 0x54]
call fcn.004bf9a0
lea ecx, [esp + 0x4c]
call fcn.00485870
mov dword [eax + 4], edi
mov dword [eax + 8], ebp
mov edx, dword [esp + 0x50]
mov ecx, dword [edx + edi*4]
mov dword [eax], ecx
mov edx, dword [esp + 0x50]
mov dword [edx + edi*4], eax
mov byte [eax + 0xc], 0
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x78]
cmp eax, ebx
jne 0x531308
pop ebp
cmp dword [esp + 0x78], ebx
je 0x5317fc
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0xf0]
test eax, eax
je 0x5317fc
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0xec]
push ebx
lea eax, [esp + 0x4c]
push ebx
push eax
mov ecx, esi
call fcn.00529ee0
cmp dword [esp + 0x14], ebx
je 0x53181b
push ebx
push ebx
mov ecx, esi
call fcn.00528b40
jmp 0x531837
cmp dword [esp + 0x10], ebx
jne 0x531827
cmp dword [esp + 0x54], ebx
je 0x531837
mov ecx, dword [esi + 0xf8]
push 1
push ebx
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x48]
mov dword [esp + 0x6c], 0xffffffff
call fcn.00486300
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x64
ret 8