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

Disassembly:
sub esp, 0x7c
push ebx
mov ebx, dword [esp + 0x84]
push ebp
push esi
xor ebp, ebp
push edi
push ebp
lea eax, [esp + 0x34]
push 0x2a
lea ecx, [esp + 0x18]
push eax
push ecx
push ebx
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x3c], ebp
call fcn.00497800
add esp, 0x14
test eax, eax
jne 0x49fecc
mov dword [esp + 0x14], 0xfffffffe
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x49feb1
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x18]
pop edi
pop esi
cmp eax, ebp
pop ebp
pop ebx
je 0x49fec4
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 4]
add esp, 0x7c
ret
lea edx, [esp + 0x34]
lea eax, [esp + 0x18]
push edx
push eax
push 3
push ebp
push ebp
push ebx
call fcn.00498660
add esp, 0x18
test eax, eax
je 0x49fea2
mov esi, dword [esp + 0x9c]
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x20], ebp
jne 0x49ff16
lea ecx, [esp + 0x1c]
push ecx
push ebx
call fcn.0049fb80
add esp, 8
test eax, eax
jne 0x49ff53
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], 1
xor ecx, ecx
xor edx, edx
mov ch, byte [eax + 6]
mov dh, byte [eax]
mov cl, byte [eax + 7]
mov dl, byte [eax + 1]
add ecx, 8
add edx, 2
lea edi, [ecx + 0x1e]
cmp edx, edi
jb 0x49fea6
cmp byte [ecx + eax + 1], 0x1c
jb 0x49fea6
xor edx, edx
mov dh, byte [ecx + eax + 0x1c]
mov dl, byte [ecx + eax + 0x1d]
mov ecx, edx
mov dword [esp + 0x1c], ecx
jmp 0x49ff5b
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
mov edx, dword [0x52f5e4]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], edx
fild qword [esp + 0x38]
mov dword [esp + 0x44], ebp
cmp esi, ebp
fidiv dword [esp + 0x40]
fstp dword [0x52d160]
je 0x4a01a5
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x24]
push eax
push ecx
push esi
push edx
call fcn.0049fc40
add esp, 0x10
test eax, eax
je 0x49fea2
cmp dword [0x594e04], ebp
je 0x4a0095
cmp esi, 0xffffffff
je 0x4a0095
mov esi, dword [0x52f5e4]
mov ecx, dword [esp + 0x24]
cmp esi, 0xb0
jne 0x49ffd6
cmp ecx, 0x6e0
jae 0x4a004c
mov eax, ecx
xor edx, edx
div esi
mov eax, 0xcccccccd
mov edi, edx
mul esi
shr edx, 3
cmp edi, edx
jb 0x4a004c
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], ebp
fild qword [esp + 0x48]
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], ebp
fild qword [esp + 0x50]
fld st(1)
fmul qword [0x4f9d88]
fcompp
fnstsw ax
test ah, 1
jne 0x4a004a
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ebp
fild qword [esp + 0x58]
push ecx
sub esp, 8
fdiv st(1)
fstp qword [esp]
push str.Setting_the_drive_speed_to__.1fx___uKB_s_.
push 0x185
fstp st(0)
call fcn.004a6ea0
add esp, 8
push eax
push ebp
call fcn.004a3640
add esp, 0x14
jmp 0x4a008f
fstp st(0)
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], ebp
fild qword [esp + 0x60]
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], ebp
fild qword [esp + 0x68]
push ecx
fdivp st(1)
fadd qword [str._N_]
call fcn.004b9448
push eax
push str.Setting_the_drive_speed_to__dx___uKB_s_.
push 0x186
call fcn.004a6ea0
add esp, 8
push eax
push ebp
call fcn.004a3640
add esp, 0x10
mov dword [0x594e04], ebp
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
xor esi, esi
cmp eax, ecx
je 0x4a01d7
mov edx, dword [esp + 0x2c]
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x70]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x18]
push ebp
push ebp
mov al, byte [edx + ecx]
mov edx, dword [esp + 0x9c]
lea ecx, [esp + 0x30]
mov byte [esp + 0x78], al
push ecx
push ebp
push edx
push ebx
call fcn.00498be0
mov ecx, dword [esp + 0x44]
add esp, 0x18
test eax, eax
mov eax, dword [esp + 0x18]
je 0x4a0119
mov edx, dword [esp + 0x28]
dec edx
mov ebx, edx
mov dword [esp + 0x28], edx
shr ebx, 0x18
mov byte [esp + 0x78], bl
mov ebx, edx
shr ebx, 0x10
mov byte [esp + 0x79], bl
mov ebx, edx
shr ebx, 8
mov byte [esp + 0x7a], bl
mov ebx, dword [esp + 0x90]
mov byte [esp + 0x7b], dl
jmp 0x4a0121
mov edx, dword [ecx + eax + 4]
mov dword [esp + 0x78], edx
mov edx, dword [ecx + eax + 8]
push 0x1c
mov dword [esp + 0x80], edx
mov eax, dword [ecx + eax + 0xc]
lea ecx, [esp + 0x74]
mov dword [esp + 0x88], eax
push ecx
push 0x1c
push ebp
push ebx
mov byte [esp + 0x9e], 3
mov byte [esp + 0x96], 3
mov byte [esp + 0x9f], 0xe8
mov byte [esp + 0x97], 0xe8
call fcn.00497fa0
add esp, 0x14
test eax, eax
je 0x49fe9a
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebp
lea eax, [esp + 0x34]
push 0x2a
lea ecx, [esp + 0x18]
push eax
push ecx
push ebx
mov dword [esp + 0x24], ebp
call fcn.00497800
add esp, 0x14
test eax, eax
je 0x49fe9a
mov eax, dword [esp + 0x10]
jmp 0x4a01bf
mov edx, dword [esp + 0x24]
cmp edx, ebp
je 0x4a01db
cmp edx, ecx
je 0x4a01db
cmp dword [esp + 0x20], ebp
jne 0x4a01ca
mov dword [esp + 0x20], 1
cmp dword [esp + 0x24], ebp
je 0x4a01db
jmp 0x49fef2
mov dword [esp + 0x14], 0xfffffffe
jmp 0x49fea6
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], 1
jmp 0x49fea6