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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a3c78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd8
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x74], esi
call fcn.00510710
mov ecx, dword [esi + 0x2fc]
xor ebx, ebx
cmp ecx, ebx
jne 0x4fde33
cmp eax, ebx
jne 0x4fe366
lea ecx, [esp + 0x24]
call fcn.0041c440
lea ecx, [esp + 0x34]
call fcn.0041c440
lea ecx, [esp + 0x3c]
call fcn.0041c440
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push eax
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.004f9f70
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
push eax
push ecx
lea edx, [esp + 0x48]
push edx
call fcn.004f9f70
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
add esp, 0x18
inc eax
push eax
push ecx
lea ecx, [esp + 0x5c]
call fcn.004017b0
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
push edx
inc eax
push eax
lea ecx, [esp + 0x80]
call fcn.004017b0
mov ecx, dword [esi + 0xc]
mov edx, dword [esi]
push ecx
push edx
lea eax, [esp + 0x44]
push eax
call fcn.004f9f70
mov eax, dword [esp + 0x4c]
add esp, 0xc
inc eax
lea ecx, [esp + 0xc0]
mov dword [esp + 0x40], eax
call fcn.0045c540
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x24]
sub ecx, edi
add ecx, 2
sub edx, eax
push ecx
add edx, 2
push edx
mov dword [esp + 0xf4], ebx
call dword [sym.imp.SanCalc.dll_int___cdecl_max_int__int_]
add esp, 8
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x20], eax
jle 0x4fe01f
jmp 0x4fdf10
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
sub eax, edx
push eax
sub ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.SanCalc.dll_int___cdecl_max_int__int_]
add esp, 8
xor esi, esi
cmp eax, ebx
mov dword [esp + 0x1c], eax
jle 0x4fdf94
mov ebx, edi
lea esp, [esp]
lea ecx, [esp + 0x10]
call fcn.0041c440
mov eax, dword [esp + 0x24]
lea edx, [esi + edi]
add edx, eax
mov eax, dword [esp + 0x28]
lea ecx, [ebx + eax]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], edx
call fcn.0041c450
test eax, eax
je 0x4fdf88
lea edx, [esp + 0x10]
push edx
call fcn.0043f090
add esp, 4
push eax
lea ecx, [esp + 0xc4]
call fcn.00457d50
mov eax, dword [esp + 0x1c]
inc esi
dec ebx
cmp esi, eax
jl 0x4fdf40
xor ebx, ebx
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
sub eax, edx
push eax
sub ecx, dword [esp + 0x58]
push ecx
call dword [sym.imp.SanCalc.dll_int___cdecl_max_int__int_]
add esp, 8
xor esi, esi
cmp eax, ebx
mov dword [esp + 0x1c], eax
jle 0x4fe012
jmp 0x4fdfc0
lea ecx, [esp + 0x2c]
call fcn.0041c440
mov eax, dword [esp + 0x54]
lea edx, [esi + edi]
add edx, eax
mov eax, dword [esp + 0x58]
sub eax, esi
add eax, edi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
call fcn.0041c450
test eax, eax
je 0x4fe009
lea ecx, [esp + 0x2c]
push ecx
call fcn.0043f090
add esp, 4
push eax
lea ecx, [esp + 0xc4]
call fcn.00457d50
mov eax, dword [esp + 0x1c]
inc esi
cmp esi, eax
jl 0x4fdfc0
mov eax, dword [esp + 0x20]
inc edi
cmp edi, eax
jl 0x4fdf10
cmp dword [esp + 0xcc], ebx
jle 0x4fe34f
lea esp, [esp]
lea ecx, [esp + 0xc0]
call fcn.004f4f90
mov esi, eax
cmp esi, ebx
je 0x4fe065
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x10]
test eax, eax
je 0x4fe065
push 0x5b3f54
mov ecx, esi
call fcn.00591e20
test eax, eax
je 0x4fe065
mov edi, esi
mov dword [esp + 0x18], edi
jmp 0x4fe06b
mov dword [esp + 0x18], ebx
mov edi, ebx
lea ecx, [esp + 0x10]
call fcn.0041c440
lea eax, [esp + 0x10]
push eax
mov ecx, edi
call fcn.004463e0
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x70]
push edx
call fcn.004f9720
mov eax, dword [edi + 0x14]
mov edx, dword [esp + 0x74]
lea eax, [eax + eax*4]
shl eax, 1
mov ecx, 0xa
sub ecx, eax
mov eax, dword [esp + 0x78]
add esp, 8
add eax, ecx
push eax
mov dword [esp + 0x74], eax
mov eax, dword [ebp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4fe342
mov eax, 1
or ecx, 0xffffffff
push 0x2d
mov byte [esp + 0x24], 0
mov byte [esp + 0x30], 0
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], ebx
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], ebx
call fcn.0043ed80
push eax
call fcn.00404810
mov ecx, dword [0x11c76a8]
mov edx, dword [0x11c76ac]
mov dword [esp + 0x24], eax
lea eax, [edx + ecx]
mov ecx, dword [esp + 0x18]
cdq
sub eax, edx
mov edx, dword [esp + 0x1c]
sar eax, 1
add edx, ecx
add esp, 8
cmp edx, eax
jg 0x4fe224
lea ecx, [esp + 0x44]
call fcn.0041c440
lea edi, [esp + 0x84]
xor esi, esi
cmp dword [esp + 0x1c], ebx
jne 0x4fe204
mov ecx, dword [esp + 0x18]
call fcn.00446750
push eax
call fcn.00404810
add esp, 4
test eax, eax
je 0x4fe215
mov ecx, dword [esp + 0x10]
mov eax, dword [edi - 4]
mov edx, dword [esp + 0x14]
add eax, ecx
mov ecx, dword [edi]
add ecx, edx
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], eax
call fcn.0041c450
test eax, eax
je 0x4fe204
lea edx, [esp + 0x44]
push edx
call fcn.0043f090
add esp, 4
mov ecx, eax
call fcn.00446750
push eax
call fcn.00404810
add esp, 4
test eax, eax
je 0x4fe215
mov ecx, dword [esp + esi + 0x5c]
mov eax, dword [esp + esi + 0xa0]
or ecx, eax
mov dword [esp + esi + 0x5c], ecx
add esi, 4
add edi, 8
cmp esi, 0x10
jl 0x4fe1a1
mov edi, dword [esp + 0x18]
mov ecx, dword [0x11c76ac]
mov edx, dword [0x11c76a8]
lea eax, [ecx + edx]
mov ecx, dword [esp + 0x14]
cdq
sub eax, edx
mov edx, dword [esp + 0x10]
sar eax, 1
add ecx, edx
cmp eax, ecx
jg 0x4fe2e3
lea ecx, [esp + 0x4c]
call fcn.0041c440
lea edi, [esp + 0x84]
xor esi, esi
lea esp, [esp]
cmp dword [esp + 0x1c], ebx
jne 0x4fe2c3
mov ecx, dword [esp + 0x18]
call fcn.00446750
push eax
call fcn.00404810
add esp, 4
test eax, eax
je 0x4fe2d4
mov ecx, dword [esp + 0x10]
mov eax, dword [edi - 4]
mov edx, dword [esp + 0x14]
add eax, ecx
mov ecx, dword [edi]
add ecx, edx
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4c], eax
call fcn.0041c450
test eax, eax
je 0x4fe2c3
lea edx, [esp + 0x4c]
push edx
call fcn.0043f090
add esp, 4
mov ecx, eax
call fcn.00446750
push eax
call fcn.00404810
add esp, 4
test eax, eax
je 0x4fe2d4
mov ecx, dword [esp + esi + 0x5c]
mov eax, dword [esp + esi + 0xb0]
or ecx, eax
mov dword [esp + esi + 0x5c], ecx
add esi, 4
add edi, 8
cmp esi, 0x10
jl 0x4fe260
mov edi, dword [esp + 0x18]
xor esi, esi
cmp dword [esp + esi*4 + 0x5c], ebx
je 0x4fe31d
push esi
mov ecx, edi
call fcn.004468d0
test eax, eax
je 0x4fe307
mov al, byte [esp + 0x2c]
mov dl, 1
mov ecx, esi
shl dl, cl
or al, dl
mov byte [esp + 0x2c], al
push esi
mov ecx, edi
call fcn.00446900
test eax, eax
je 0x4fe31d
mov ecx, esi
mov al, 1
shl al, cl
or byte [esp + 0x20], al
inc esi
cmp esi, 4
jl 0x4fe2e5
mov edx, dword [esp + 0x2c]
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x14]
push edx
mov edx, dword [esp + 0x24]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x84]
push edi
call fcn.004f5f80
cmp dword [esp + 0xcc], ebx
jg 0x4fe030
lea ecx, [esp + 0xc0]
mov dword [esp + 0xec], 0xffffffff
call fcn.0045c560
mov ecx, dword [esp + 0xe4]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8