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

Disassembly:
mov eax, dword [0x49cb80]
sub esp, 0x414
push ebx
push ebp
xor ebx, ebx
push esi
push ebx
push ebx
push 0x1009
push eax
call dword [fcn.004684d4]
cmp dword [0x49c4c8], ebx
je 0x4d139a
mov ecx, dword [0x49c4c4]
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov eax, dword [esi + 0x10]
push eax
call 0x50f200
mov ecx, dword [esi + 0xc]
push ecx
call 0x50f200
mov edx, dword [esi + 8]
push edx
call 0x50f200
mov eax, dword [esi + 4]
push eax
call 0x50f200
mov ecx, dword [esi]
push ecx
call 0x50f200
mov edx, dword [0x49c4c4]
mov eax, dword [edx]
push eax
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov dword [ecx], edx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
call 0x50f543
mov eax, dword [0x49c4c8]
add esp, 0x18
dec eax
mov dword [0x49c4c8], eax
jne 0x4d1336
mov ecx, dword [0x49c850]
lea eax, [esp + 0x88]
push eax
push ecx
call fcn.004d65a0
mov ebp, dword [fcn.004682ac]
add esp, 8
lea edx, [esp + 0x31c]
push eax
push edx
call ebp
cmp byte [esp + 0x31d], 0x3a
je 0x4d13db
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x414
ret
lea eax, [esp + 0x31c]
push 0x482064
push eax
mov dword [esp + 0x94], 0xf
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], 0xffffffff
call dword [fcn.004682b0]
lea ecx, [esp + 0xd8]
lea edx, [esp + 0x31c]
push ecx
push edx
call dword [0x468230]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x34], esi
jne 0x4d1442
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x414
ret
push edi
xor edi, edi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edi
test byte [esp + 0xdc], 0x10
jne 0x4d173a
cmp byte [esp + 0x108], 0x2e
jne 0x4d1489
mov al, byte [esp + 0x109]
cmp al, bl
je 0x4d173a
cmp al, 0x2e
jne 0x4d1489
cmp byte [esp + 0x10a], bl
je 0x4d173a
lea eax, [esp + 0x108]
push eax
call fcn.004ef530
add esp, 4
lea ecx, [esp + 0x21c]
push eax
push ecx
call ebp
mov edx, dword [esp + 0xf8]
push ebx
push 0xffffffffffffffff
push ebx
push edx
call 0x512310
mov edi, eax
mov eax, dword [esp + 0xfc]
xor ecx, ecx
mov esi, edx
add edi, eax
adc esi, ecx
cmp esi, ebx
jg 0x4d14f4
jl 0x4d14d4
cmp edi, 0x400
ja 0x4d14f4
push 0xa6
call fcn.004bc150
add esp, 4
lea edx, [esp + 0xb8]
push eax
push edx
call ebp
mov ebp, dword [fcn.00468538]
jmp 0x4d1523
push ebx
push 0x400
push esi
push edi
call 0x511ff0
push eax
push 0x9f
call fcn.004bc150
mov ebp, dword [fcn.00468538]
add esp, 4
push eax
lea eax, [esp + 0xc0]
push eax
call ebp
add esp, 0xc
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x21c]
add eax, edi
mov edi, dword [esp + 0x14]
adc edi, esi
push 0x2e
push ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edi
mov byte [esp + 0x28], 0x20
mov byte [esp + 0x29], bl
call 0x5105e0
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x4d1571
push esi
call dword [fcn.004682a8]
cmp eax, 4
jg 0x4d1571
inc esi
lea edx, [esp + 0x20]
push esi
push edx
call dword [fcn.004682ac]
lea eax, [esp + 0x20]
push eax
call 0x51bb4a
add esp, 4
lea ecx, [esp + 0x84]
lea edx, [esp + 0xf0]
push ecx
push edx
call dword [0x4680f4]
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x84]
push eax
push ecx
call dword [0x468188]
mov edx, dword [esp + 0x46]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x3c]
and edx, 0xffff
and eax, 0xffff
push edx
mov edx, dword [esp + 0x42]
push eax
mov eax, dword [esp + 0x4a]
and ecx, 0xffff
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
push eax
lea ecx, [esp + 0xdc]
push 0x482048
push ecx
call ebp
mov al, byte [esp + 0xf8]
add esp, 0x1c
test al, 4
mov esi, 0x481f8c
jne 0x4d1603
mov esi, 0x496f54
test al, 0x20
mov edx, 0x481f88
jne 0x4d1611
mov edx, 0x496f54
test al, 2
mov ecx, 0x481f84
jne 0x4d161f
mov ecx, 0x496f54
test al, 1
mov eax, 0x481f80
jne 0x4d162d
mov eax, 0x496f54
push esi
push edx
push ecx
push eax
lea edx, [esp + 0x5c]
push 0x481f74
push edx
call ebp
push 0x14
call 0x50f2e9
mov esi, eax
lea eax, [esp + 0x238]
push eax
call fcn.004ef570
lea ecx, [esp + 0xd8]
mov dword [esi], eax
push ecx
call fcn.004ef570
lea edx, [esp + 0x44]
mov dword [esi + 4], eax
push edx
call fcn.004ef570
mov dword [esi + 8], eax
lea eax, [esp + 0xf0]
push eax
call fcn.004ef570
lea ecx, [esp + 0x78]
mov dword [esi + 0xc], eax
push ecx
call fcn.004ef570
mov dword [esi + 0x10], eax
mov edx, dword [0x49c4c4]
push 0xc
mov edi, dword [edx]
mov ebp, dword [edi + 4]
call 0x511667
add esp, 0x34
cmp edi, ebx
mov ecx, edi
jne 0x4d16ac
mov ecx, eax
cmp ebp, ebx
mov dword [eax], ecx
jne 0x4d16b4
mov ebp, eax
mov dword [eax + 4], ebp
mov dword [edi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
add eax, 8
cmp eax, ebx
je 0x4d16c8
mov dword [eax], esi
mov eax, dword [0x49c4c8]
mov edx, dword [esp + 0xdc]
inc eax
mov edi, dword [fcn.004684d4]
mov dword [0x49c4c8], eax
mov dword [esp + 0x94], eax
lea eax, [esp + 0x90]
push ebx
mov dword [esp + 0xb4], esi
mov esi, dword [esp + 0x42c]
shr edx, 1
push eax
push ebx
and edx, 1
push 0x1007
push esi
mov dword [esp + 0xac], ebx
mov dword [esp + 0xc0], edx
call edi
push eax
push 0x102a
push esi
call edi
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x14]
mov ebp, dword [fcn.004682ac]
inc eax
mov dword [esp + 0x34], eax
lea ecx, [esp + 0xdc]
push ecx
push esi
call dword [0x468234]
test eax, eax
jne 0x4d1451
push esi
call dword [0x468238]
movsx eax, byte [esp + 0x320]
mov edx, dword [0x482044]
push eax
mov dword [esp + 0x1c], edx
mov byte [esp + 0x20], bl
call 0x5121d3
lea ecx, [esp + 0x30]
mov byte [esp + 0x1c], al
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call fcn.004e8840
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
add esp, 0x10
cmp eax, ebx
mov byte [esp + 0x1a], bl
jl 0x4d17d0
jg 0x4d17b9
cmp ecx, 0x40000000
jb 0x4d17d0
fild qword [esp + 0x24]
sub esp, 8
fmul qword [0x468828]
fstp qword [esp]
push 0x9d
jmp 0x4d183c
cmp eax, ebx
jl 0x4d1835
jg 0x4d17de
cmp ecx, 0x100000
jb 0x4d1803
fild qword [esp + 0x24]
sub esp, 8
fmul qword [0x468818]
fstp qword [esp]
push 0x9e
call fcn.004bc150
add esp, 4
lea edx, [esp + 0x5c]
push eax
push edx
jmp 0x4d184a
cmp eax, ebx
jl 0x4d1835
jg 0x4d1811
cmp ecx, 0x400
jb 0x4d1835
push ebx
push 0x400
push eax
push ecx
call 0x511ff0
push edx
push eax
push 0x9f
call fcn.004bc150
add esp, 4
push eax
lea eax, [esp + 0x60]
push eax
jmp 0x4d184a
push eax
push ecx
push 0x9b
call fcn.004bc150
add esp, 4
lea ecx, [esp + 0x5c]
push eax
push ecx
call 0x511bf5
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
add esp, 0x10
cmp eax, ebx
jl 0x4d1895
jg 0x4d1868
cmp ecx, 0x40000000
jb 0x4d1895
fild qword [esp + 0x2c]
sub esp, 8
fmul qword [0x468828]
fstp qword [esp]
push 0x9d
call fcn.004bc150
add esp, 4
lea edx, [esp + 0x7c]
push eax
push edx
call 0x511bf5
jmp 0x4d1922
cmp eax, ebx
jl 0x4d1907
jg 0x4d18a3
cmp ecx, 0x100000
jb 0x4d18d0
fild qword [esp + 0x2c]
sub esp, 8
fmul qword [0x468818]
fstp qword [esp]
push 0x9e
call fcn.004bc150
add esp, 4
push eax
lea eax, [esp + 0x80]
push eax
call 0x511bf5
jmp 0x4d1922
cmp eax, ebx
jl 0x4d1907
jg 0x4d18de
cmp ecx, 0x400
jb 0x4d1907
push ebx
push 0x400
push eax
push ecx
call 0x511ff0
push edx
push eax
push 0x9f
call fcn.004bc150
add esp, 4
lea ecx, [esp + 0x7c]
push eax
push ecx
call 0x511bf5
jmp 0x4d1922
push eax
push ecx
push 0x9b
call fcn.004bc150
add esp, 4
lea edx, [esp + 0x7c]
push eax
push edx
call dword [fcn.00468538]
fild qword [esp + 0x34]
fild qword [esp + 0x3c]
add esp, 0x10
lea eax, [esp + 0x54]
fdivp st(1)
push eax
fdivr qword [0x468820]
call 0x5117d0
lea ecx, [esp + 0x78]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
push 0x9c
call fcn.004bc150
mov esi, dword [fcn.00468538]
add esp, 4
push eax
lea eax, [esp + 0x230]
push eax
call esi
lea ecx, [esp + 0x234]
push ecx
push ebx
call fcn.004d5390
add esp, 0x20
cmp edi, ebx
jl 0x4d19b7
jg 0x4d198a
mov eax, dword [esp + 0x10]
cmp eax, 0x40000000
jb 0x4d19bb
fild qword [esp + 0x10]
sub esp, 8
fmul qword [0x468828]
fstp qword [esp]
push 0x9d
call fcn.004bc150
add esp, 4
lea edx, [esp + 0x6c]
push eax
push edx
call 0x511bf5
jmp 0x4d1a3f
mov eax, dword [esp + 0x10]
cmp edi, ebx
jl 0x4d1a28
jg 0x4d19c8
cmp eax, 0x100000
jb 0x4d19f2
fild qword [esp + 0x10]
sub esp, 8
fmul qword [0x468818]
fstp qword [esp]
push 0x9e
call fcn.004bc150
add esp, 4
push eax
lea eax, [esp + 0x70]
push eax
call 0x511bf5
jmp 0x4d1a3f
cmp edi, ebx
jl 0x4d1a28
jg 0x4d19ff
cmp eax, 0x400
jb 0x4d1a28
push ebx
push 0x400
push edi
push eax
call 0x511ff0
push edx
push eax
push 0x9f
call fcn.004bc150
add esp, 4
lea ecx, [esp + 0x6c]
push eax
push ecx
call 0x511bf5
jmp 0x4d1a3f
push edi
push eax
push 0x9b
call fcn.004bc150
add esp, 4
lea edx, [esp + 0x6c]
push eax
push edx
call esi
fild qword [esp + 0x34]
fild qword [esp + 0x20]
add esp, 0x10
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x64]
fdivp st(1)
push eax
sub esp, 8
fdivr qword [0x468820]
fstp qword [esp]
push ecx
push edx
push 0xa0
call fcn.004bc150
add esp, 4
push eax
lea eax, [esp + 0x234]
push eax
call 0x511bf5
lea ecx, [esp + 0x238]
push ecx
push 1
call fcn.004d5390
push 5
call fcn.004bc150
push eax
push 2
call fcn.004d5390
add esp, 0x30
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x414
ret