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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x168
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x2e]
lea esi, [esp + 0x84]
lea edx, [esp + 0x38]
push eax
push ecx
push esi
push dword [ebp + 0x10]
push edx
call fcn.00510750
add esp, 0x14
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x5c], 0x49cff0
mov dword [esp + 0x60], 0x516ee4
mov dword [esp + 0x64], ebp
mov dword [esp + 0x6c], esp
mov dword [esp + 0x68], 0x4dddc1
mov dword [esp + 0x48], 1
lea eax, [esp + 0x44]
push eax
call fcn.004baef0
add esp, 4
lea ecx, [esp + 0x18]
push 0
push 0xa
call fcn.004eecc0
fldz
fstp st(0)
test byte [esp + 0x18], 1
lea eax, [esp + 0x19]
je 0x4dd9de
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0xc4]
mov dword [esp + 0x34], 0
mov byte [esp + 0xb], 1
mov byte [esp + 0x17], 0x45
mov dword [esp + 0x24], eax
lea eax, [ebp + 8]
mov eax, dword [eax]
mov dword [esp + 0x30], eax
mov dword [esp + 0xc], eax
jmp 0x4dda26
add eax, 2
mov dword [ecx + 0xc], eax
fldz
fstp st(0)
mov ecx, dword [esp + 0xc]
mov dl, 1
test ecx, ecx
je 0x4dda50
mov eax, dword [ecx + 0xc]
mov edi, dword [esp + 4]
cmp eax, dword [ecx + 0x10]
je 0x4dda60
movzx eax, word [eax]
jmp 0x4dda7b
mov edi, dword [esp + 4]
jmp 0x4dda98
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x48], 2
call eax
fldz
fstp st(0)
mov ecx, dword [esp + 0xc]
mov edi, dword [esp + 4]
xor edx, edx
cmp ax, 0xffff
jne 0x4dda98
lea eax, [ebp + 8]
xor ecx, ecx
mov dl, 1
mov dword [esp + 0x30], 0
mov dword [eax], 0
lea eax, [ebp + 0xc]
mov dword [esp + 0xc], ecx
mov ecx, dword [eax]
test ecx, ecx
je 0x4ddaf6
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x4ddac0
movzx eax, word [eax]
cmp ax, 0xffff
je 0x4ddaed
test dl, dl
jne 0x4ddb00
jmp 0x4ddc3c
mov eax, dword [ecx]
mov dword [esp + 0x78], edx
mov eax, dword [eax + 0x24]
mov dword [esp + 0x48], 3
mov dword [esp + 0x10], ecx
call eax
fldz
fstp st(0)
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 4]
mov edx, dword [esp + 0x78]
cmp ax, 0xffff
jne 0x4ddab6
lea eax, [ebp + 0xc]
mov dword [eax], 0
xor ecx, ecx
test dl, dl
jne 0x4ddc3c
movzx eax, byte [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x10], ecx
mov ecx, eax
mov edx, esi
shr ecx, 1
test al, 1
cmove edx, ecx
add edx, edi
cmp dword [esp + 0x28], edx
jne 0x4ddb89
test al, 1
cmove esi, ecx
mov dword [esp + 4], esi
lea eax, [esi + esi]
mov dword [esp + 0x48], 4
lea ecx, [esp + 0x18]
push 0
push eax
call fcn.004eecc0
fldz
fstp st(0)
test byte [esp + 0x18], 1
mov eax, 0xa
je 0x4ddb58
mov eax, dword [esp + 0x18]
and eax, 0xfffffffe
dec eax
mov dword [esp + 0x48], 5
lea ecx, [esp + 0x18]
push 0
push eax
call fcn.004eecc0
fldz
fstp st(0)
test byte [esp + 0x18], 1
lea edi, [esp + 0x19]
je 0x4ddb7f
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 4]
add eax, edi
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 4], edi
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x4ddba0
movzx eax, word [eax]
jmp 0x4ddbb7
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x48], 6
call eax
fldz
fstp st(0)
mov edi, dword [esp + 4]
movzx ecx, word [esp + 0x2e]
movzx edx, word [esp + 0x2c]
mov dword [esp + 0x48], 7
movzx eax, ax
lea esi, [esp + 0x84]
push esi
lea esi, [esp + 0x38]
push esi
lea esi, [esp + 0x2c]
push esi
lea esi, [esp + 0xd0]
push esi
lea esi, [esp + 0x48]
push esi
push edx
push ecx
lea ecx, [esp + 0x44]
push ecx
push edi
lea ecx, [esp + 0x3b]
push ecx
lea ecx, [esp + 0x33]
push ecx
push eax
call fcn.005103a0
add esp, 0x30
fldz
test eax, eax
fstp st(0)
jne 0x4ddc34
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
jne 0x4dda20
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
mov dword [esp + 0x48], 8
call eax
fldz
jmp 0x4dda28
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 4]
movzx eax, byte [esp + 0x38]
mov dword [esp + 0x10], ecx
test al, 1
je 0x4ddc7e
mov eax, dword [esp + 0x3c]
cmp byte [esp + 0xb], 0
je 0x4ddc87
test eax, eax
je 0x4ddc87
mov eax, dword [esp + 0x24]
lea edx, [esp + 0xc4]
mov ecx, eax
sub ecx, edx
cmp ecx, 0x9f
jg 0x4ddc87
mov ecx, dword [esp + 0x34]
lea edx, [eax + 4]
mov dword [esp + 0x24], edx
mov dword [eax], ecx
jmp 0x4ddc87
shr eax, 1
cmp byte [esp + 0xb], 0
jne 0x4ddc54
mov eax, dword [esp + 0x28]
mov dword [esp + 0x48], 9
push dword [ebp + 0x14]
push eax
push edi
call fcn.004ff4b0
add esp, 0xc
mov eax, dword [ebp + 0x18]
fstp xword [eax]
push dword [ebp + 0x14]
push dword [esp + 0x28]
lea eax, [esp + 0xcc]
push eax
lea eax, [esp + 0x44]
push eax
call fcn.0047c060
add esp, 0x10
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4ddcda
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x10]
cmp eax, dword [esi + 0x10]
je 0x4ddceb
movzx eax, word [eax]
jmp 0x4ddd0c
mov ecx, dword [esp + 0x10]
xor esi, esi
mov dl, 1
test ecx, ecx
jne 0x4ddd18
jmp 0x4ddd78
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x48], 0xa
mov ecx, esi
call eax
fldz
fstp st(0)
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
xor edx, edx
cmp ax, 0xffff
je 0x4ddd37
test ecx, ecx
je 0x4ddd78
mov eax, dword [ecx + 0xc]
mov dword [esp + 0xc], esi
cmp eax, dword [ecx + 0x10]
je 0x4ddd4a
movzx eax, word [eax]
cmp ax, 0xffff
je 0x4ddd6b
mov esi, dword [esp + 0xc]
test dl, dl
je 0x4ddd7c
jmp 0x4ddd82
lea eax, [ebp + 8]
xor esi, esi
mov dl, 1
mov dword [eax], 0
test ecx, ecx
jne 0x4ddd18
jmp 0x4ddd78
mov eax, dword [ecx]
mov dword [esp + 4], edx
mov eax, dword [eax + 0x24]
mov dword [esp + 0x48], 0xb
call eax
fldz
fstp st(0)
mov edx, dword [esp + 4]
cmp ax, 0xffff
jne 0x4ddd2d
mov esi, dword [esp + 0xc]
lea eax, [ebp + 0xc]
mov dword [eax], 0
test dl, dl
je 0x4ddd82
mov eax, dword [ebp + 0x14]
or byte [eax], 2
test byte [esp + 0x18], 1
je 0x4ddd95
push dword [esp + 0x20]
call fcn.00493cf0
add esp, 4
test byte [esp + 0x38], 1
je 0x4ddda8
push dword [esp + 0x40]
call fcn.00493cf0
add esp, 4
lea eax, [esp + 0x44]
push eax
call fcn.004baf50
add esp, 4
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x14