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

Disassembly:
sub esp, 0xa4
push esi
mov esi, ecx
mov al, byte [esi + 0x48]
test al, al
je 0x4d84bf
mov ecx, dword [esi + 0x4c]
test ecx, ecx
je 0x4d84bf
push ebx
call fcn.004f5180
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x40], ebx
je 0x4d84be
fld dword [esi + 0x40]
mov eax, dword [esi + 0x3c]
fadd dword [0x5bb7cc]
mov dword [esp + 0xc], eax
fstp dword [esp + 0x38]
call fcn.004d1790
mov dword [esp + 0x2c], eax
cmp eax, 0x4e8
movzx eax, byte [esi + 0x10]
jne 0x4d7a13
dec eax
je 0x4d7a05
dec eax
jne 0x4d7a43
mov cx, word [esi + 0xc]
shr cx, 1
movzx edx, cx
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
jmp 0x4d7a3b
movzx eax, word [esi + 0xc]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
jmp 0x4d7a3b
sub eax, 2
je 0x4d7a29
dec eax
jne 0x4d7a43
movzx ecx, word [esi + 0xc]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
jmp 0x4d7a3b
mov dx, word [esi + 0xc]
shr dx, 1
movzx eax, dx
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fsubr dword [esp + 0xc]
fstp dword [esp + 0xc]
mov al, byte [esi + 0x11]
cmp al, 0x20
je 0x4d7a5c
cmp al, 0x30
jne 0x4d7a76
movzx ecx, word [esi + 0xe]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
jmp 0x4d7a6e
movzx edx, word [esi + 0xe]
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fmul dword [0x5ce774]
fsubr dword [esp + 0x38]
fstp dword [esp + 0x38]
mov ecx, dword [0x621dc8]
push ebp
push edi
push 5
push 0x13
call fcn.004c9ed0
mov ecx, dword [0x621dc8]
push 6
push 0x14
call fcn.004c9ed0
mov ecx, dword [0x621dc8]
push 0x1c
call fcn.004c9780
mov ecx, dword [0x621dc8]
push 0x89
mov dword [esp + 0xb0], eax
call fcn.004c9780
mov ecx, dword [0x621dc8]
push 0
push 0x1c
mov dword [esp + 0xb8], eax
call fcn.004c9790
mov ecx, dword [0x621dc8]
push 0
push 0x89
call fcn.004c9790
mov ecx, dword [0x621dc8]
push 0x142
call fcn.004c9850
mov ecx, dword [0x621dc8]
push 2
push 2
push 0
call fcn.004c9810
mov ecx, dword [0x621dc8]
push 0
push 3
push 0
call fcn.004c9810
mov ecx, dword [0x621dc8]
push 4
push 1
push 0
call fcn.004c9810
mov ecx, dword [0x621dc8]
push 2
push 5
push 0
call fcn.004c9810
mov ecx, dword [0x621dc8]
push 0
push 6
push 0
call fcn.004c9810
mov ecx, dword [0x621dc8]
push 4
push 4
push 0
call fcn.004c9810
mov eax, dword [esi + 0x44]
mov ecx, eax
mov edx, eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x9c], eax
mov al, byte [esi + 0x1b]
test al, al
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x84], edx
je 0x4d7e69
mov ebp, dword [esi + 0x54]
cmp ebp, dword [esi + 0x58]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], edx
je 0x4d7e69
lea esp, [esp]
mov edi, dword [ebp]
movsx eax, word [edi + 2]
movsx ecx, word [edi + 4]
mov edx, dword [edi + 0x18]
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], edx
fild dword [esp + 0x20]
mov dword [esp + 0x20], ecx
fild dword [esp + 0x20]
fstp dword [esp + 0x20]
fld dword [esp + 0x10]
fadd st(1)
fsub dword [esi + 0x3c]
fcomp dword [esi + 0x14]
fnstsw ax
test ah, 0x41
jne 0x4d7bf4
mov al, byte [esi + 0x1a]
test al, al
je 0x4d7e67
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0xb8]
test eax, eax
je 0x4d7c14
fild dword [eax + 4]
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 1
jne 0x4d7c14
fstp st(0)
jmp 0x4d7e4b
fld dword [esp + 0x10]
movsx edx, word [edi]
fsub dword [0x5ce774]
push edx
mov ecx, ebx
fstp dword [esp + 0x40]
fld dword [esp + 0x20]
fsub dword [0x5ce774]
fstp dword [esp + 0x3c]
fld dword [esp + 0x40]
fadd st(1)
fstp dword [esp + 0x48]
fstp st(0)
fld dword [esp + 0x3c]
fadd dword [esp + 0x24]
fstp dword [esp + 0x24]
call fcn.004f3650
mov ecx, dword [esp + 0x48]
mov ebx, dword [0x621dc8]
call fcn.00487090
push eax
push 0
mov ecx, ebx
call fcn.004c97d0
fld dword [esp + 0x38]
mov eax, dword [edi + 8]
mov dword [esp + 0x5c], eax
mov ecx, dword [edi + 0xc]
mov dword [esp + 0x60], ecx
mov edx, dword [edi + 8]
mov dword [esp + 0x74], edx
mov eax, dword [edi + 0x14]
mov dword [esp + 0x78], eax
mov ecx, dword [edi + 0x10]
mov dword [esp + 0x8c], ecx
mov edx, dword [edi + 0xc]
mov dword [esp + 0x90], edx
mov eax, dword [edi + 0x10]
mov dword [esp + 0xa4], eax
mov ecx, dword [edi + 0x14]
fst dword [esp + 0x50]
fld dword [esp + 0x20]
mov eax, dword [esi + 8]
fst dword [esp + 0x68]
lea edx, [esp + 0x4c]
fxch st(1)
push 4
fstp dword [esp + 0x84]
push edx
mov dword [esp + 0xb0], ecx
fstp dword [esp + 0xa0]
mov dword [esp + 0x60], eax
fld dword [esp + 0x44]
mov dword [esp + 0x78], eax
fsub dword [0x5bb7cc]
mov dword [esp + 0x90], eax
mov dword [esp + 0xa8], eax
fst dword [esp + 0x54]
fstp dword [esp + 0x6c]
fld dword [esp + 0x4c]
fsub dword [0x5bb7cc]
fst dword [esp + 0x84]
fstp dword [esp + 0x9c]
call fcn.004cfb00
add esp, 8
test al, al
je 0x4d7d37
mov ecx, dword [0x621dc8]
push 2
push 0
push 5
call fcn.004c99a0
fld dword [esp + 0x3c]
mov dword [esp + 0x18], 0x3f800000
fadd dword [0x5bb7cc]
lea eax, [esp + 0x4c]
push 4
push eax
fst dword [esp + 0x54]
fstp dword [esp + 0x6c]
fld dword [esp + 0x20]
fadd dword [esp + 0x4c]
fst dword [esp + 0x84]
fstp dword [esp + 0x9c]
call fcn.004cfb00
add esp, 8
test al, al
je 0x4d7d8b
mov ecx, dword [0x621dc8]
push 2
push 0
push 5
call fcn.004c99a0
fld dword [esp + 0x3c]
lea ecx, [esp + 0x4c]
fst dword [esp + 0x4c]
push 4
fstp dword [esp + 0x68]
push ecx
fld dword [esp + 0x4c]
fst dword [esp + 0x84]
fstp dword [esp + 0x9c]
fld dword [esp + 0x40]
fsub dword [0x5bb7cc]
fst dword [esp + 0x58]
fld dword [esp + 0x28]
fsub dword [0x5bb7cc]
fst dword [esp + 0x70]
fxch st(1)
fstp dword [esp + 0x88]
fstp dword [esp + 0xa0]
call fcn.004cfb00
add esp, 8
test al, al
je 0x4d7df9
mov ecx, dword [0x621dc8]
push 2
push 0
push 5
call fcn.004c99a0
fld dword [esp + 0x38]
lea edx, [esp + 0x4c]
fadd dword [0x5bb7cc]
push 4
push edx
fst dword [esp + 0x58]
fld dword [esp + 0x20]
fadd dword [esp + 0x28]
fst dword [esp + 0x70]
fxch st(1)
fstp dword [esp + 0x88]
fstp dword [esp + 0xa0]
call fcn.004cfb00
add esp, 8
test al, al
je 0x4d7e47
mov ecx, dword [0x621dc8]
push 2
push 0
push 5
call fcn.004c99a0
mov ebx, dword [esp + 0x48]
fld dword [esp + 0x30]
mov eax, dword [esi + 0x58]
fadd dword [esp + 0x10]
add ebp, 4
cmp ebp, eax
fstp dword [esp + 0x10]
jne 0x4d7ba0
jmp 0x4d7e69
fstp st(0)
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], ecx
xor ebp, ebp
jmp 0x4d7e80
mov ecx, dword [esi + 0x54]
test ecx, ecx
je 0x4d807c
mov eax, dword [esi + 0x58]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jae 0x4d807c
mov edx, ecx
mov edi, dword [edx + ebp*4]
movsx eax, word [edi + 2]
movsx ecx, word [edi + 4]
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
fst dword [esp + 0x20]
fcomp st(0)
fnstsw ax
test ah, 0x41
jne 0x4d7ecb
fld dword [esp + 0x20]
jmp 0x4d7ed7
movsx edx, word [edi + 4]
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
mov eax, dword [edi + 0x18]
fld st(1)
fadd dword [esp + 0x10]
mov dword [esp + 0x30], eax
fsub dword [esi + 0x3c]
fcomp dword [esi + 0x14]
fnstsw ax
test ah, 0x41
jne 0x4d7f0e
mov al, byte [esi + 0x1a]
test al, al
je 0x4d8078
fadd dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], ecx
fstp dword [esp + 0x1c]
jmp 0x4d7f10
fstp st(0)
mov eax, dword [esp + 0xb8]
test eax, eax
je 0x4d7f3d
fild dword [eax + 4]
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 1
jne 0x4d7f3d
fstp st(0)
inc ebp
fld dword [esp + 0x30]
fadd dword [esp + 0x10]
fstp dword [esp + 0x10]
jmp 0x4d7e80
fld dword [esp + 0x10]
movsx edx, word [edi]
fsub dword [0x5ce774]
push edx
mov ecx, ebx
fstp dword [esp + 0x40]
fld dword [esp + 0x20]
fsub dword [0x5ce774]
fstp dword [esp + 0x3c]
fld dword [esp + 0x40]
fadd st(1)
fstp dword [esp + 0x48]
fstp st(0)
fld dword [esp + 0x3c]
fadd dword [esp + 0x24]
fstp dword [esp + 0x24]
call fcn.004f3650
mov ecx, dword [esp + 0x48]
mov ebx, dword [0x621dc8]
call fcn.00487090
push eax
push 0
mov ecx, ebx
call fcn.004c97d0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x4c], eax
mov edx, dword [edi + 8]
mov dword [esp + 0x5c], edx
mov eax, dword [edi + 0xc]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], edx
mov eax, dword [edi + 8]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x74], eax
mov ecx, dword [edi + 0x14]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], eax
mov ecx, dword [edi + 0x10]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x8c], ecx
mov edx, dword [edi + 0xc]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x90], edx
mov dword [esp + 0x98], ecx
mov ecx, dword [esi + 0x64]
mov dword [esp + 0x94], eax
mov edx, dword [edi + 0x10]
mov dword [esp + 0xa4], edx
mov eax, dword [edi + 0x14]
mov dword [esp + 0xa8], eax
mov eax, dword [ecx + ebp*4]
lea edx, [esp + 0x4c]
push 4
push edx
mov dword [esp + 0xa8], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x60], eax
call fcn.004cfb00
add esp, 8
test al, al
je 0x4d8062
mov ecx, dword [0x621dc8]
push 2
push 0
push 5
call fcn.004c99a0
fld dword [esp + 0x30]
mov ebx, dword [esp + 0x48]
fadd dword [esp + 0x10]
inc ebp
fstp dword [esp + 0x10]
jmp 0x4d7e80
fstp st(0)
fstp st(0)
mov al, byte [esi + 0x18]
test al, al
je 0x4d83e7
call fcn.004e3f80
mov ebx, eax
call fcn.004e3e60
mov ebp, eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x20]
push ecx
push ebx
mov ecx, esi
add ebp, ebx
call fcn.004d7020
cmp ebx, ebp
jge 0x4d80c6
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
push ebp
mov ecx, esi
mov edi, closesocket
call fcn.004d7020
jmp 0x4d80d7
fld dword [esp + 0x1c]
or edi, 0xffffffff
fadd dword [0x5bf20c]
fstp dword [esp + 0x14]
cmp dword [esp + 0x34], 0x4e8
jne 0x4d811b
movzx ecx, word [esi + 0xc]
movzx edx, word [esi + 0xe]
mov dword [esp + 0x34], ecx
fild dword [esp + 0x34]
mov dword [esp + 0x34], edx
fsubr dword [esi + 0x3c]
fld dword [esp + 0x1c]
fadd st(1)
fstp dword [esp + 0x1c]
fadd dword [esp + 0x14]
fstp dword [esp + 0x14]
fld dword [esp + 0x10]
fadd dword [esi + 0x40]
fst dword [esp + 0x10]
fild dword [esp + 0x34]
jmp 0x4d8148
fld dword [esp + 0x1c]
movzx eax, word [esi + 0xe]
fadd dword [esi + 0x3c]
mov dword [esp + 0x34], eax
fstp dword [esp + 0x1c]
fld dword [esp + 0x10]
fadd dword [esi + 0x40]
fst dword [esp + 0x10]
fld dword [esp + 0x14]
fadd dword [esi + 0x3c]
fstp dword [esp + 0x14]
fild dword [esp + 0x34]
mov al, byte [esi + 0x11]
fst dword [esp + 0x30]
cmp al, 0x20
fadd st(1)
je 0x4d8161
cmp al, 0x30
jne 0x4d8175
fxch st(1)
fsub dword [esp + 0x30]
jmp 0x4d816f
fld dword [esp + 0x30]
fmul dword [0x5ce774]
fsubp st(2)
fxch st(1)
fst dword [esp + 0x10]
fxch st(1)
mov ecx, dword [esp + 0x1c]
fld st(1)
mov edx, ecx
fstp dword [esp + 0x28]
mov eax, dword [esp + 0x28]
fxch st(1)
mov dword [esp + 0x24], ecx
fstp dword [esp + 0x28]
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x50], eax
mov eax, edx
mov dword [esp + 0x2c], 0
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x28]
fst dword [esp + 0x28]
mov dword [esp + 0x24], edx
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x68], ecx
mov ecx, eax
mov dword [esp + 0x2c], 0
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x28]
fstp dword [esp + 0x28]
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x80], edx
mov edx, ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], 0
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x28]
push 0
mov dword [esp + 0xa0], ecx
mov ecx, dword [0x621dc8]
push 0
mov dword [esp + 0x60], edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x90], edi
mov dword [esp + 0xa8], edi
mov dword [esp + 0x9c], edx
mov dword [esp + 0xa0], eax
call fcn.004c97d0
push 5
call fcn.004cf890
lea edx, [esp + 0x50]
push 4
push edx
call fcn.004cfb00
add esp, 0xc
test al, al
je 0x4d8284
mov ecx, dword [0x621dc8]
push 2
push 0
push 4
push 0
push 4
call fcn.004c9a10
call fcn.004e3e70
mov edi, eax
call fcn.004e3e80
mov ebp, eax
cmp edi, ebp
jge 0x4d83e7
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x20]
push ecx
add edi, ebx
push edi
mov ecx, esi
call fcn.004d7020
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
add ebp, ebx
push ebp
mov ecx, esi
call fcn.004d7020
fld dword [esp + 0x1c]
fadd dword [esi + 0x3c]
movzx ecx, word [esi + 0xe]
mov dword [esp + 0x34], ecx
mov eax, 0xffff0000
mov dword [esp + 0x58], eax
fild dword [esp + 0x34]
mov dword [esp + 0x70], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0xa0], eax
fadd dword [esp + 0x10]
mov dword [esp + 0x2c], 0
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x54], ecx
fadd dword [esi + 0x40]
mov dword [esp + 0x2c], 0
fld dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
fadd dword [esi + 0x3c]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x2c], 0
push 0x18
fst dword [esp + 0x18]
fld st(1)
fadd dword [0x5bf20c]
fstp dword [esp + 0x1c]
fld st(2)
fstp dword [esp + 0x28]
mov edx, dword [esp + 0x28]
fld st(1)
mov dword [esp + 0x50], edx
fstp dword [esp + 0x2c]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x54], eax
fstp dword [esp + 0x28]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x1c]
fstp dword [esp + 0x2c]
mov eax, dword [esp + 0x2c]
mov ecx, edx
fstp dword [esp + 0x28]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x88], edx
mov edx, eax
mov dword [esp + 0x98], edx
lea edx, [esp + 0x50]
push edx
push 0x65
push 0x5ce768
mov dword [esp + 0x34], eax
mov eax, ecx
mov dword [esp + 0x90], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], 0
mov ecx, dword [esp + 0x3c]
push 2
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], ecx
push 4
mov ecx, dword [0x621dc8]
push 0
push 4
call fcn.004c9a40
mov ecx, dword [0x621dc8]
push 0x13
call fcn.004c9f10
mov ecx, dword [0x621dc8]
push 0x14
call fcn.004c9f10
mov eax, dword [esp + 0xac]
mov ecx, dword [0x621dc8]
push eax
push 0x1c
call fcn.004c9790
mov ecx, dword [esp + 0xb0]
push ecx
mov ecx, dword [0x621dc8]
push 0x89
call fcn.004c9790
mov eax, dword [esi + 0x74]
test eax, eax
je 0x4d84bc
mov ecx, dword [esi + 0x78]
sub ecx, eax
sar ecx, 5
test ecx, ecx
je 0x4d84bc
fild dword [0x65b6a4]
fsub dword [esi + 0x3c]
call fcn.0057b228
fild dword [0x65b6a8]
mov edi, eax
fsub dword [esi + 0x40]
call fcn.0057b228
test edi, edi
jl 0x4d84bc
test eax, eax
jl 0x4d84bc
movzx edx, word [esi + 0xc]
cmp edi, edx
jge 0x4d84bc
movzx ecx, word [esi + 0xe]
cmp eax, ecx
jge 0x4d84bc
mov eax, dword [esi + 0x74]
mov esi, dword [esi + 0x78]
cmp eax, esi
je 0x4d84bc
mov ecx, eax
movsx edx, word [ecx]
add eax, 0x20
cmp edi, edx
jl 0x4d8499
movsx edx, word [ecx + 2]
cmp edi, edx
jl 0x4d84aa
cmp eax, esi
jne 0x4d8485
pop edi
pop ebp
pop ebx
pop esi
add esp, 0xa4
ret 4
push 0xffffffffffffffff
add ecx, 4
push 0
push ecx
mov ecx, 0x60e490
call fcn.004d7350
pop edi
pop ebp
pop ebx
pop esi
add esp, 0xa4
ret 4