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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5112fa
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x551644]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea ebx, [ecx + 4]
xor edi, edi
mov dword [ecx], vtable.MessageLog::CLogWnd.0
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], ebx
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
mov dword [ebp - 4], edi
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x1c], edi
mov dword [ecx + 0x20], edi
mov dword [ecx + 0x24], edi
mov dword [ecx + 0x28], edi
mov dword [ecx + 0x2c], edi
mov dword [ecx + 0x30], edi
mov dword [ecx + 0x38], edi
mov dword [ecx + 0x3c], edi
mov dword [ecx + 0x40], edi
mov dword [ecx + 0x48], edi
mov dword [ecx + 0x4c], edi
mov dword [ecx + 0x50], edi
mov dword [ecx + 0x58], edi
mov dword [ecx + 0x5c], edi
mov dword [ecx + 0x60], edi
mov dword [ecx + 0x68], edi
mov dword [ecx + 0x6c], edi
mov dword [ecx + 0x70], edi
mov dword [ecx + 0x74], edi
mov dword [ecx + 0x80], edi
mov dword [ecx + 0x84], edi
mov dword [ecx + 0x88], edi
mov ecx, 0x5537a9
mov byte [ebp - 4], 8
call fcn.004047e0
mov ecx, dword [0x552adc]
lea eax, [ebp - 0x58]
push eax
call fcn.0043bbf0
mov esi, dword [eax]
mov ecx, dword [eax + 4]
push 0x24
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], ecx
call fcn.004f4b27
add esp, 4
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 9
cmp eax, edi
je 0x4dc664
mov ecx, eax
call fcn.00412010
jmp 0x4dc666
xor eax, eax
push eax
mov ecx, ebx
mov byte [ebp - 4], 8
call fcn.0040cd60
mov edx, dword [ebx]
cmp edx, edi
jne 0x4dc67c
xor ecx, ecx
jmp 0x4dc692
mov eax, dword [ebx + 8]
cmp eax, edi
je 0x4dc688
mov eax, dword [eax + 0xc]
jmp 0x4dc68a
xor eax, eax
mov ecx, dword [ebx + 4]
imul ecx, eax
add ecx, edx
mov edx, dword [ebp - 0x4c]
push edi
push edi
push edx
push esi
call fcn.0040fb20
test al, al
jne 0x4dc6b7
push 0x533160
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x64], 2
call fcn.004f4775
mov ecx, 0x55380c
call fcn.004174f0
mov edx, dword [0x552af0]
mov esi, dword [edx + 0x18]
cmp esi, edi
jne 0x4dc6d2
xor eax, eax
jmp 0x4dc6e8
mov eax, dword [edx + 0x20]
cmp eax, edi
je 0x4dc6de
mov ecx, dword [eax + 0xc]
jmp 0x4dc6e0
xor ecx, ecx
mov eax, dword [edx + 0x1c]
imul eax, ecx
add eax, esi
mov eax, dword [eax + 0x14]
mov edx, dword [eax]
cmp edx, edi
jne 0x4dc6f5
xor ecx, ecx
jmp 0x4dc70b
mov ecx, dword [eax + 8]
cmp ecx, edi
je 0x4dc701
mov esi, dword [ecx + 0xc]
jmp 0x4dc703
xor esi, esi
mov ecx, dword [eax + 4]
imul ecx, esi
add ecx, edx
mov esi, dword [ebx]
cmp esi, edi
jne 0x4dc715
xor eax, eax
jmp 0x4dc72b
mov eax, dword [ebx + 8]
cmp eax, edi
je 0x4dc721
mov edx, dword [eax + 0xc]
jmp 0x4dc723
xor edx, edx
mov eax, dword [ebx + 4]
imul eax, edx
add eax, esi
mov edx, dword [ecx]
push edi
push eax
mov eax, dword [edx + 4]
call eax
push 0x24
call fcn.004f4b27
add esp, 4
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 0xa
cmp eax, edi
je 0x4dc752
mov ecx, eax
call fcn.00412010
jmp 0x4dc754
xor eax, eax
push 1
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 8
call fcn.00432b70
mov edx, dword [ebp - 0x40]
mov byte [ebp - 4], 0xb
cmp edx, edi
jne 0x4dc772
xor ecx, ecx
jmp 0x4dc788
mov eax, dword [ebp - 0x38]
cmp eax, edi
je 0x4dc77e
mov eax, dword [eax + 0xc]
jmp 0x4dc780
xor eax, eax
mov ecx, dword [ebp - 0x3c]
imul ecx, eax
add ecx, edx
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x50]
push edi
push 1
push edx
push eax
call fcn.0040fb20
test al, al
jne 0x4dc7b1
push 0x533160
lea ecx, [ebp - 0x68]
push ecx
mov dword [ebp - 0x68], 2
call fcn.004f4775
mov edx, dword [ebp - 0x40]
cmp edx, edi
jne 0x4dc7bc
xor eax, eax
jmp 0x4dc7d2
mov eax, dword [ebp - 0x38]
cmp eax, edi
je 0x4dc7c8
mov ecx, dword [eax + 0xc]
jmp 0x4dc7ca
xor ecx, ecx
mov eax, dword [ebp - 0x3c]
imul eax, ecx
add eax, edx
mov dword [eax + 0x20], 0x80000000
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x38]
cmp edx, edi
jne 0x4dc7e7
xor esi, esi
jmp 0x4dc7fa
cmp ecx, edi
je 0x4dc7f0
mov eax, dword [ecx + 0xc]
jmp 0x4dc7f2
xor eax, eax
mov esi, dword [ebp - 0x3c]
imul esi, eax
add esi, edx
cmp dword [esi + 4], edi
je 0x4dc823
mov ecx, 0x5537a9
call fcn.004047e0
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 4]
mov ecx, dword [0x552adc]
push edi
push edx
push eax
call fcn.0040f300
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x40]
cmp edx, edi
jne 0x4dc82b
xor ebx, ebx
jmp 0x4dc83d
cmp ecx, edi
je 0x4dc834
mov eax, dword [ecx + 0xc]
jmp 0x4dc836
xor eax, eax
imul eax, dword [ebp - 0x3c]
lea ebx, [edx + eax]
mov eax, dword [ebp - 0x44]
mov esi, dword [eax]
cmp esi, edi
jne 0x4dc84a
xor eax, eax
jmp 0x4dc863
mov eax, dword [eax + 8]
cmp eax, edi
je 0x4dc856
mov edx, dword [eax + 0xc]
jmp 0x4dc858
xor edx, edx
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 4]
imul eax, edx
add eax, esi
mov edi, dword [eax + 4]
test edi, edi
je 0x4dc897
mov esi, dword [ebx + 4]
test esi, esi
je 0x4dc897
mov ecx, 0x5537a9
call fcn.004047e0
mov ecx, dword [0x552adc]
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push edi
call fcn.0040f270
mov ecx, dword [ebp - 0x38]
mov byte [ebp - 4], 8
test ecx, ecx
je 0x4dc8c7
dec dword [ecx + 4]
cmp dword [ecx + 4], 0
lea eax, [ecx + 4]
jne 0x4dc8c7
cmp byte [ecx + 8], 0
je 0x4dc8b7
mov edx, dword [ecx]
mov eax, dword [edx]
call eax
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x4dc8c7
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
mov esi, dword [0x553890]
mov ecx, 0x55380c
call fcn.004174f0
mov ecx, dword [0x552af0]
mov edx, dword [ecx + 0x18]
test edx, edx
jne 0x4dc8e8
xor ecx, ecx
jmp 0x4dc8fe
mov eax, dword [ecx + 0x20]
test eax, eax
je 0x4dc8f4
mov eax, dword [eax + 0xc]
jmp 0x4dc8f6
xor eax, eax
mov ecx, dword [ecx + 0x1c]
imul ecx, eax
add ecx, edx
mov ebx, dword [ebp - 0x48]
push esi
lea esi, [ebx + 0x1c]
push esi
call fcn.0043d890
test al, al
jne 0x4dc924
push 0x533160
lea ecx, [ebp - 0x5c]
push ecx
mov dword [ebp - 0x5c], 1
call fcn.004f4775
mov edx, dword [esi]
test edx, edx
jne 0x4dc92e
xor eax, eax
jmp 0x4dc944
mov eax, dword [esi + 8]
test eax, eax
je 0x4dc93a
mov ecx, dword [eax + 0xc]
jmp 0x4dc93c
xor ecx, ecx
mov eax, dword [esi + 4]
imul eax, ecx
add eax, edx
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [ebx + 0x7c], ecx
lea ecx, [ebx + 0x80]
mov dword [ebp - 0x54], edx
call fcn.0042fe50
mov ecx, 0x55380c
mov dword [ebx + 0x34], 0xffffffff
call fcn.004174f0
mov ecx, dword [0x552af0]
call fcn.00477bc0
mov ecx, dword [eax + 0x48]
sub ecx, dword [eax + 0x44]
sar ecx, 2
mov dword [ebx + 0x78], ecx
xor edi, edi
cmp edi, 5
jge 0x4dca39
push 0x30
call fcn.004f4b27
add esp, 4
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 0xc
test eax, eax
je 0x4dc9ac
mov ecx, eax
call fcn.004d1a10
jmp 0x4dc9ae
xor eax, eax
push 1
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 8
call fcn.004cf530
mov edx, dword [ebx + 0x3c]
mov byte [ebp - 4], 0xd
cmp edx, dword [ebx + 0x40]
jne 0x4dc9d3
push 1
lea ecx, [ebx + 0x38]
call fcn.004752d0
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x4dc9f5
mov ecx, dword [ebp - 0x40]
mov dword [eax], ecx
mov edx, dword [ebp - 0x3c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x38]
mov dword [eax + 8], ecx
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x4dc9f8
inc dword [eax + 4]
mov eax, dword [ebp - 0x38]
add dword [ebx + 0x3c], 0xc
mov byte [ebp - 4], 8
test eax, eax
je 0x4dca33
dec dword [eax + 4]
cmp dword [eax + 4], 0
mov ecx, eax
jne 0x4dca2b
cmp byte [ecx + 8], 0
je 0x4dca1b
mov edx, dword [ecx]
mov eax, dword [edx]
call eax
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x4dca2b
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
xor eax, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x40], eax
inc edi
jmp 0x4dc985
xor esi, esi
xor edi, edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x44], edi
lea esp, [esp]
cmp edi, 2
jae 0x4dcbcb
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov ecx, 0x55380c
mov byte [ebp - 4], 0xe
call fcn.004174f0
mov ecx, dword [0x552af0]
mov edx, dword [ecx + 0x18]
cmp edx, esi
jne 0x4dca81
xor esi, esi
jmp 0x4dca97
mov eax, dword [ecx + 0x20]
cmp eax, esi
je 0x4dca8d
mov eax, dword [eax + 0xc]
jmp 0x4dca8f
xor eax, eax
mov esi, dword [ecx + 0x1c]
imul esi, eax
add esi, edx
mov ecx, dword [edi*4 + 0x54d070]
push 0x24
mov dword [ebp - 0x4c], ecx
call fcn.004f4b27
add esp, 4
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 0xf
test eax, eax
je 0x4dcabf
mov ecx, eax
call fcn.00412010
jmp 0x4dcac1
xor eax, eax
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xe
call fcn.0040cd60
cmp dword [ebp - 0x40], 0
mov edi, dword [ebp - 0x38]
jne 0x4dcade
mov ebx, dword [ebp - 0x3c]
xor eax, eax
jmp 0x4dcaf4
test edi, edi
je 0x4dcae7
mov ecx, dword [edi + 0xc]
jmp 0x4dcae9
xor ecx, ecx
mov ebx, dword [ebp - 0x3c]
mov eax, ebx
imul eax, ecx
add eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x4c]
push edx
push eax
mov ecx, esi
call fcn.0048eb70
test al, al
jne 0x4dcb19
push 0x533160
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x60], 1
call fcn.004f4775
mov edx, dword [ebp - 0x40]
test edx, edx
jne 0x4dcb24
xor eax, eax
jmp 0x4dcb36
test edi, edi
je 0x4dcb2d
mov ecx, dword [edi + 0xc]
jmp 0x4dcb2f
xor ecx, ecx
mov eax, ebx
imul eax, ecx
add eax, edx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
xor edx, edx
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edx
push ecx
lea edx, [ebp - 0x24]
mov dword [ebp - 0x28], eax
push edx
mov eax, edx
push eax
call dword [sym.imp.USER32.dll_UnionRect]
mov esi, dword [ebp - 0x48]
mov ecx, dword [esi + 0x4c]
cmp ecx, dword [esi + 0x50]
jne 0x4dcb70
push 1
lea ecx, [esi + 0x48]
call fcn.004752d0
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x4dcb89
mov edx, dword [ebp - 0x40]
mov dword [eax], edx
mov dword [eax + 4], ebx
mov dword [eax + 8], edi
test edi, edi
je 0x4dcb89
inc dword [edi + 4]
add dword [esi + 0x4c], 0xc
mov byte [ebp - 4], 8
test edi, edi
je 0x4dcbbb
dec dword [edi + 4]
jne 0x4dcbb3
cmp byte [edi + 8], 0
je 0x4dcba8
mov eax, dword [edi]
mov edx, dword [eax]
mov ecx, edi
call edx
mov eax, dword [edi]
mov edx, dword [eax + 4]
push 1
mov ecx, edi
call edx
xor eax, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x40], eax
inc dword [ebp - 0x44]
mov ebx, dword [ebp - 0x48]
mov edi, dword [ebp - 0x44]
xor esi, esi
jmp 0x4dca50
mov edx, dword [ebx + 0x5c]
mov ecx, dword [ebx + 0x58]
cmp ecx, edx
je 0x4dcbfc
mov eax, edx
cmp eax, edx
je 0x4dcbf9
mov esi, dword [eax]
mov dword [ecx], esi
mov esi, dword [eax + 4]
mov dword [ecx + 4], esi
mov esi, dword [eax + 8]
mov dword [ecx + 8], esi
mov esi, dword [eax + 0xc]
mov dword [ecx + 0xc], esi
add ecx, 0x10
add eax, 0x10
jmp 0x4dcbd7
mov dword [ebx + 0x5c], ecx
lea edi, [ebx + 0x68]
xor eax, eax
xor ecx, ecx
mov dword [edi], eax
mov dword [edi + 4], ecx
xor edx, edx
xor esi, esi
mov dword [edi + 8], edx
mov ecx, 0x553818
mov dword [edi + 0xc], esi
call fcn.004175a0
mov eax, dword [0x552af4]
mov eax, dword [eax + 0x18]
sub eax, dword [ebp - 0x1c]
mov ecx, 0x553818
add eax, dword [ebp - 0x24]
shr eax, 1
mov dword [ebp - 0x44], eax
call fcn.004175a0
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x18]
mov ecx, dword [0x552af4]
mov ecx, dword [ecx + 0x1c]
lea edx, [ecx + eax*4]
lea edx, [eax + edx - 0x28]
shr edx, 1
mov dword [ebp - 0x54], edx
xor ebx, ebx
mov esi, dword [ebp - 0x48]
mov dword [ebp - 0x4c], ebx
cmp ebx, 5
jge 0x4dcd15
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x20]
lea eax, [ecx + 0xa]
imul eax, ebx
add eax, edx
mov edx, dword [ebp - 0x44]
sub edx, dword [ebp - 0x24]
add ecx, eax
add dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x18], ecx
mov ecx, dword [esi + 0x60]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x24], edx
cmp eax, ecx
jne 0x4dccde
mov edx, dword [esi + 0x58]
sub eax, edx
sar eax, 4
cmp eax, 0xffffffe
jbe 0x4dccad
push str.vector_T__too_long
call fcn.004f469d
sub ecx, edx
inc eax
sar ecx, 4
cmp eax, ecx
jbe 0x4dccde
mov edx, ecx
shr edx, 1
mov ebx, 0xfffffff
sub ebx, edx
cmp ebx, ecx
jae 0x4dccca
xor ecx, ecx
jmp 0x4dcccc
add ecx, edx
cmp ecx, eax
jae 0x4dccd2
mov ecx, eax
push ecx
lea ecx, [esi + 0x58]
call fcn.004d0a60
mov ebx, dword [ebp - 0x4c]
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x4dccfc
mov edx, dword [ebp - 0x24]
mov dword [eax], edx
mov ecx, dword [ebp - 0x20]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 8], edx
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0xc], ecx
add dword [esi + 0x5c], 0x10
lea edx, [ebp - 0x24]
push edx
push edi
push edi
call dword [sym.imp.USER32.dll_UnionRect]
mov edx, dword [ebp - 0x54]
inc ebx
jmp 0x4dcc56
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
mov ecx, dword [esi + 0x7c]
mov edx, dword [esi + 0x6c]
mov dword [ebp - 0x18], eax
mov eax, dword [edi]
sub eax, ecx
push edx
push eax
lea eax, [ebp - 0x24]
xor ebx, ebx
push eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ecx
call dword [sym.imp.USER32.dll_OffsetRect]
lea ecx, [ebp - 0x24]
push ecx
push edi
push edi
call dword [sym.imp.USER32.dll_UnionRect]
push 0x6c
call fcn.004f4b27
add esp, 4
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 0x10
cmp eax, ebx
je 0x4dcd7a
mov edi, dword [esi + 0x78]
mov ecx, dword [esi + 0x6c]
mov edx, dword [esi + 0x70]
push 5
push edi
push ecx
add edx, 4
push edx
mov ecx, eax
call fcn.004d4930
jmp 0x4dcd7c
xor eax, eax
push eax
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 8
call fcn.004cf5b0
mov edx, dword [esi + 0x28]
cmp edx, ebx
jne 0x4dcd94
xor eax, eax
jmp 0x4dcdaa
mov eax, dword [esi + 0x30]
cmp eax, ebx
je 0x4dcda0
mov ecx, dword [eax + 0xc]
jmp 0x4dcda2
xor ecx, ecx
mov eax, dword [esi + 0x2c]
imul eax, ecx
add eax, edx
mov eax, dword [eax + 0x5c]
push eax
mov ecx, esi
call fcn.004dc090
or eax, 0xffffffff
mov dword [esi + 0x8c], eax
mov dword [esi + 0x90], eax
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004f4f8b
mov esp, ebp
pop ebp
ret