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

Disassembly:
push 0xffffffffffffffff
push 0x542a88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0x18], ebp
lea ecx, [ebp + 0x174]
test ecx, ecx
je 0x4d2908
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x4d2908
mov eax, dword [ecx]
call dword [eax + 0x58]
lea ecx, [ebp + 0x9c]
test ecx, ecx
je 0x4d291e
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x4d291e
mov edx, dword [ecx]
call dword [edx + 0x58]
lea ecx, [ebp + 0x44]
call fcn.00470d30
push 0xffffffffffffffff
lea ecx, [ebp + 0x58]
push 0
call fcn.00512fb4
lea edi, [ebp + 0x6c]
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.005133df
lea ebx, [ebp + 0x80]
mov ecx, ebx
call fcn.00470d30
mov eax, dword [ebp + 0x3c]
test eax, eax
je 0x4d2eb8
mov ecx, dword [eax + 0x8c]
mov edx, dword [eax + 0x78]
shr ecx, 2
cmp edx, 1
mov dword [esp + 0x14], ecx
jne 0x4d29d8
mov ecx, dword [eax + 0x74]
test ecx, ecx
je 0x4d2eb8
mov ecx, dword [eax + 0x4c]
push 0
add ecx, 0x14
call fcn.004cfca0
push eax
mov ecx, ebx
call fcn.00470df0
mov eax, dword [ebp + 0x3c]
mov ecx, dword [edi + 8]
mov eax, dword [eax + 0x74]
push eax
push ecx
mov ecx, edi
call fcn.00513650
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp + 0x70]
mov eax, dword [0x58f614]
mov esi, dword [edx]
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], esi
mov eax, dword [esi + 0x14]
mov dword [esp + 0x68], 0
test ah, 0x80
mov ebx, 0xc
je 0x4d2a85
mov ebx, 7
jmp 0x4d2a9f
test ecx, ecx
je 0x4d2eb8
xor esi, esi
test ecx, ecx
jle 0x4d29a3
mov eax, dword [ebp + 0x3c]
push 0
push 0
mov ecx, dword [eax + 0x84]
mov edx, dword [ecx + esi*4]
mov ecx, dword [eax + 0x4c]
push edx
add ecx, 0x14
call fcn.004cfd40
test eax, eax
je 0x4d2a56
mov ecx, dword [ebp + 0x3c]
mov eax, dword [eax]
push 0
push eax
mov ecx, dword [ecx + 0x5c]
call fcn.0044e840
mov ebp, eax
test ebp, ebp
je 0x4d2a52
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x3c]
mov ecx, dword [eax + 0x84]
mov eax, dword [ecx + esi*4]
mov ecx, ebx
push eax
call fcn.00470df0
mov eax, dword [edi + 8]
push ebp
push eax
mov ecx, edi
call fcn.00513650
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
inc esi
cmp esi, eax
jl 0x4d29e6
jmp 0x4d299f
mov ebp, dword [esp + 0x18]
cmp esi, dword [esp + 0x14]
jge 0x4d299f
mov ecx, ebx
call fcn.00470d30
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.005133df
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
add esp, 0x5c
ret
test ah, 0x20
jne 0x4d2a9f
mov edx, dword [ebp + 0x3c]
cmp dword [edx + 0x78], 1
je 0x4d2a9a
test eax, 0x10000
je 0x4d2a9f
mov ebx, 0xa
mov eax, dword [ebp + 0x3c]
mov edi, 1
cmp dword [eax + 0x78], edi
je 0x4d2ceb
cmp ecx, edi
je 0x4d2ceb
mov edi, 3
cmp ebx, edi
mov dword [esp + 0x20], edi
jl 0x4d2b1d
mov dword [esp + 0x28], 0xfffffffd
mov ecx, dword [esp + 0x28]
push 0
push ecx
call fcn.004c5100
mov edx, dword [ebp + 0x60]
lea ecx, [ebp + 0x58]
add esp, 8
push eax
push edx
call fcn.00513185
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x4d2b0b
mov esi, edi
mov edi, eax
neg esi
push esi
lea ecx, [ebp + 0x44]
call fcn.00470df0
dec edi
jne 0x4d2af7
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
inc edi
dec ecx
cmp edi, ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], ecx
jle 0x4d2acd
lea ecx, [esp + 0x38]
call fcn.00470b30
mov dword [esp + 0x38], 0x5478f0
mov eax, dword [esi + 0x24]
mov edi, 8
cmp eax, edi
mov byte [esp + 0x68], 1
mov dword [esp + 0x20], edi
jle 0x4d2cd0
mov dword [esp + 0x28], 0xa0
mov edx, dword [esi + 0x28]
mov eax, dword [esp + 0x28]
add eax, edx
mov cx, word [eax + 0xc]
cmp cx, 0x400
mov dword [esp + 0x34], ecx
je 0x4d2cb1
mov ecx, dword [0x591d90]
test ecx, ecx
jne 0x4d2b7f
test byte [eax + 0xe], 0xc
jne 0x4d2cb1
test byte [eax + 0xe], 0x10
jne 0x4d2cb1
mov ecx, dword [eax]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x38]
call fcn.00470d30
add edi, 0xfffffff8
lea ecx, [esp + 0x38]
push edi
call fcn.00470df0
mov eax, dword [esp + 0x14]
mov ebx, 1
cmp eax, ebx
jle 0x4d2c3e
mov edx, dword [ebp + 0x70]
mov edi, 8
mov esi, dword [edx + ebx*4]
cmp dword [esi + 0x24], edi
jle 0x4d2c31
mov ebp, 0xa0
mov eax, dword [esi + 0x28]
mov cx, word [esp + 0x34]
add eax, ebp
cmp cx, word [eax + 0xc]
jne 0x4d2c04
cmp dword [0x591d90], 1
je 0x4d2bea
test byte [eax + 0xe], 0xc
jne 0x4d2c04
test byte [eax + 0xe], 0x10
jne 0x4d2c04
mov eax, dword [eax]
mov edx, dword [esp + 0x30]
push eax
push edx
call fcn.004ff36e
add esp, 8
test eax, eax
je 0x4d2c11
mov eax, dword [esi + 0x24]
inc edi
add ebp, 0x14
cmp edi, eax
jge 0x4d2c2d
jmp 0x4d2bcb
add edi, 0xfffffff8
lea ecx, [esp + 0x38]
push edi
call fcn.00470df0
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
inc ebx
cmp ebx, eax
jge 0x4d2c3a
jmp 0x4d2bb6
mov ebp, dword [esp + 0x18]
lea ecx, [esp + 0x38]
call fcn.00470d30
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x48]
shr eax, 2
test eax, eax
jle 0x4d2cb1
mov ecx, dword [esi + 0x28]
mov edx, dword [esp + 0x28]
test byte [ecx + edx + 0xe], 1
je 0x4d2c86
push 0x58ac88
lea ecx, [esp + 0x14]
call fcn.00514473
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push eax
call fcn.005146c6
mov eax, dword [ebp + 0x60]
lea ecx, [ebp + 0x58]
lea edx, [esp + 0x10]
push edx
push eax
call fcn.005131b1
jmp 0x4d2c97
mov edx, dword [esp + 0x30]
mov eax, dword [ebp + 0x60]
lea ecx, [ebp + 0x58]
push edx
push eax
call fcn.00513185
mov ecx, dword [esp + 0x48]
mov edi, dword [esp + 0x40]
mov eax, ecx
push ecx
neg eax
sbb eax, eax
lea ecx, [ebp + 0x44]
and eax, edi
push eax
call fcn.004713f0
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov eax, dword [esi + 0x24]
inc edi
add ecx, 0x14
cmp edi, eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], ecx
jl 0x4d2b4f
lea ecx, [esp + 0x38]
mov byte [esp + 0x68], 0
mov dword [esp + 0x38], 0x5477b0
call fcn.00470d30
jmp 0x4d2de8
cmp ebx, edi
jl 0x4d2d4c
lea ecx, [esp + 0x10]
call fcn.005142c1
cmp edi, 0xc
jne 0x4d2d0b
push 0x58ac88
lea ecx, [esp + 0x14]
call fcn.005146c6
mov eax, dword [ebp + 0x3c]
mov esi, edi
neg esi
mov ecx, dword [eax + 0x78]
push ecx
push esi
call fcn.004c5100
add esp, 8
lea ecx, [esp + 0x10]
push eax
call fcn.005146c6
mov eax, dword [ebp + 0x60]
lea ecx, [ebp + 0x58]
lea edx, [esp + 0x10]
push edx
push eax
call fcn.005131b1
push esi
lea ecx, [ebp + 0x44]
call fcn.00470df0
inc edi
cmp edi, ebx
jle 0x4d2cef
mov esi, dword [esp + 0x1c]
mov eax, dword [esi + 0x24]
mov ebx, 8
cmp eax, ebx
jle 0x4d2de8
mov esi, 0xa0
mov eax, dword [0x591d90]
mov edi, dword [esp + 0x1c]
test eax, eax
jne 0x4d2d78
mov eax, dword [edi + 0x28]
test byte [eax + esi + 0xe], 0xc
jne 0x4d2dd9
mov ecx, dword [edi + 0x28]
lea eax, [ecx + esi]
mov cx, word [ecx + esi + 0xe]
test cl, 0x10
jne 0x4d2dd9
test cl, 1
je 0x4d2dbe
push 0x58ac88
lea ecx, [esp + 0x14]
call fcn.00514473
mov edx, dword [edi + 0x28]
lea ecx, [esp + 0x10]
mov eax, dword [edx + esi]
push eax
call fcn.005146c6
mov eax, dword [ebp + 0x60]
lea ecx, [ebp + 0x58]
lea edx, [esp + 0x10]
push edx
push eax
call fcn.005131b1
jmp 0x4d2dcd
mov eax, dword [eax]
mov edx, dword [ebp + 0x60]
lea ecx, [ebp + 0x58]
push eax
push edx
call fcn.00513185
lea eax, [ebx - 8]
lea ecx, [ebp + 0x44]
push eax
call fcn.00470df0
mov eax, dword [edi + 0x24]
inc ebx
add esi, 0x14
cmp ebx, eax
jl 0x4d2d61
push 0
lea ecx, [esp + 0x50]
call fcn.0051cfbd
xor esi, esi
push 0x11
mov dword [ebp + 0x94], esi
mov edi, dword [ebp + 0x60]
lea ecx, [esp + 0x50]
mov byte [esp + 0x6c], 2
mov dword [esp + 0x38], edi
call fcn.0051c91e
test edi, edi
mov dword [esp + 0x30], eax
jle 0x4d2e63
mov ebx, dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov ecx, dword [ebp + 0x5c]
lea edx, [esp + 0x28]
push edx
lea eax, [ecx + esi*4]
mov eax, dword [ecx + esi*4]
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esp + 0x60]
push eax
call ebx
mov eax, dword [esp + 0x28]
mov ecx, dword [ebp + 0x94]
mov edi, dword [esp + 0x2c]
cmp ecx, eax
mov dword [esp + 0x20], eax
jle 0x4d2e52
mov eax, ecx
mov dword [ebp + 0x94], eax
mov eax, dword [esp + 0x34]
inc esi
cmp esi, eax
jl 0x4d2e20
jmp 0x4d2e67
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
push ecx
lea ecx, [esp + 0x50]
call fcn.0051c95a
mov esi, dword [ebp + 0x94]
mov edx, dword [ebp + 0x40]
push 0
add esi, 4
push 0
push edx
mov ecx, ebp
mov dword [ebp + 0x98], edi
mov dword [ebp + 0x94], esi
call fcn.004d4a10
lea ecx, [esp + 0x4c]
mov byte [esp + 0x68], 0
call fcn.0051d02f
lea ecx, [esp + 0x10]
mov dword [esp + 0x68], 0xffffffff
call fcn.00514336
mov ecx, dword [esp + 0x60]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x5c
ret