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

Disassembly:
push ebp
sub esp, 0x68
mov eax, 0x576026
call fcn.00566548
sub esp, 0x1c0
and dword [ebp + 0x50], 0
push ebx
push esi
push edi
mov ebx, ecx
and dword [ebp - 4], 0
lea ecx, [ebp - 0x15c]
call fcn.004ed76c
xor eax, eax
mov byte [ebp - 0x18], 1
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 2
call fcn.004f170b
mov edi, dword [ebp + 0x7c]
mov byte [ebp - 4], 3
test edi, edi
je 0x4f4da8
mov eax, dword [edi]
lea ecx, [ebp + 0x50]
push ecx
push 0x57c704
push edi
call dword [eax]
mov eax, dword [edi]
lea ecx, [ebp - 0x118]
push ecx
push 0x57c804
push edi
call dword [eax]
and dword [ebp + 8], 0
and dword [ebp + 0xc], 0
and dword [ebp + 0x1c], 0
or eax, 0xffffffff
xorps xmm0, xmm0
or dword [ebp + 0x54], eax
mov dword [ebp + 4], eax
xor al, al
movlpd qword [ebp + 0x48], xmm0
mov byte [ebp + 0x6b], al
mov eax, dword [ebp + 0x4c]
mov dword [ebp + 0x38], eax
mov eax, dword [ebp + 0x48]
movlpd qword [ebp - 0x14], xmm0
mov dword [ebp + 0x3c], eax
and dword [ebp + 0x64], 0
cmp dword [ebx + 0x34], 0
mov byte [ebp - 4], 5
jne 0x4f4df9
push dword [ebp + 0x74]
lea ecx, [ebp + 0x64]
call fcn.0040f6aa
jmp 0x4f4ed1
cmp dword [ebp + 0x50], 0
je 0x4f5733
cmp dword [ebx + 0x34], 1
jne 0x4f4e80
lea ecx, [ebp - 0x30]
call fcn.0040260e
xor eax, eax
and dword [ebp - 0x38], eax
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x50]
lea edx, [ebp - 0x40]
push edx
push 4
push eax
mov ecx, dword [eax]
mov byte [ebp - 4], 8
call dword [ecx + 0xc]
mov esi, eax
test esi, esi
jne 0x4f563e
push 8
pop eax
cmp word [ebp - 0x40], ax
jne 0x4f5624
push dword [ebp - 0x38]
lea ecx, [ebp - 0x30]
call fcn.00402804
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 7
call fcn.0040a562
push 1
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x15c]
call fcn.004f02a2
push dword [ebp - 0x30]
test al, al
je 0x4f5615
mov byte [ebp - 4], 5
call fcn.0056651e
pop ecx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x15c]
call fcn.004efeae
mov eax, dword [ebp + 0x50]
lea edx, [ebp + 0x64]
push edx
push dword [ebp - 0x4c]
mov byte [ebp - 4], 0xe
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov esi, eax
test esi, esi
je 0x4f4eb2
cmp esi, 1
jne 0x4f564b
cmp dword [ebp + 0x64], 0
je 0x4f5702
test esi, esi
jne 0x4f5702
push dword [ebp - 0x4c]
mov byte [ebp - 4], 5
call fcn.0056651e
pop ecx
mov ecx, dword [ebp + 0x64]
lea eax, [ebp + 0x58]
xorps xmm0, xmm0
lea edx, [ebp + 0x28]
push eax
movlpd qword [ebp + 0x58], xmm0
call fcn.004149b8
mov esi, eax
test esi, esi
jne 0x4f5654
test edi, edi
je 0x4f4f17
mov eax, dword [ebp + 0x58]
lea ecx, [ebp - 0x14]
add dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x5c]
adc dword [ebp - 0x10], eax
mov eax, dword [edi]
push ecx
push esi
push edi
call dword [eax + 0xc]
mov esi, eax
test esi, esi
jne 0x4f5654
lea ecx, [ebp - 0x1cc]
call fcn.004f1587
lea eax, [ebp - 0x1cc]
mov byte [ebp - 4], 0x19
push eax
push dword [ebp - 0x118]
lea ecx, [ebp + 8]
push dword [ebp + 0x78]
push dword [ebp + 0x64]
call fcn.004f57e2
mov cl, byte [ebp + 0x22]
mov esi, eax
test cl, cl
je 0x4f4f54
cmp byte [ebp + 0x23], 0
je 0x4f4f54
or dword [ebx + 0x48], 0x20
mov eax, dword [ebx + 0x34]
test eax, eax
jne 0x4f4f5e
mov byte [ebx + 0x10], cl
test esi, esi
jne 0x4f56dc
lea ecx, [ebx + 0x30]
call fcn.004f1b24
mov edi, eax
lea eax, [ebp - 0x1cc]
push eax
lea ecx, [edi + 8]
mov dword [ebp], ecx
call fcn.004f19c2
mov esi, dword [ebp + 0x64]
test esi, esi
je 0x4f4f8f
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, dword [edi]
test ecx, ecx
je 0x4f4f9b
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea ecx, [ebp - 0xb4]
mov dword [edi], esi
call fcn.004f1695
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 0x21
call fcn.004f1c90
mov edi, dword [ebp]
mov ecx, dword [ebp + 0x34]
mov eax, dword [ebp + 0x30]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
mov esi, dword [ebp + 0x34]
cmp esi, dword [ebp + 0x5c]
ja 0x4f5598
mov edx, dword [ebp + 0x30]
jb 0x4f4fe0
cmp edx, dword [ebp + 0x58]
ja 0x4f5598
mov eax, dword [ebp + 0x64]
push 0
push 0
push esi
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x10]
mov esi, eax
test esi, esi
jne 0x4f5677
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp + 8]
call fcn.004f61fc
mov esi, eax
test esi, esi
jne 0x4f553c
mov eax, dword [ebp - 0x104]
mov ecx, dword [ebp - 0x100]
cmp eax, 5
jne 0x4f502b
test ecx, ecx
je 0x4f545c
cmp eax, 2
jne 0x4f5034
test ecx, ecx
je 0x4f5045
cmp eax, 3
jne 0x4f5533
test ecx, ecx
jne 0x4f5533
mov byte [ebp - 0xac], al
lea ecx, [ebp + 8]
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.004f6439
test al, al
je 0x4f552d
mov ecx, dword [ebp + 0x30]
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], eax
mov dword [edi + 0x18], ecx
mov dword [edi + 0x1c], eax
mov eax, dword [ebp - 0x6c]
add eax, dword [ebp + 0x30]
mov ecx, dword [ebp - 0x68]
adc ecx, dword [ebp + 0x34]
mov byte [ebp + 0x63], 1
cmp ecx, dword [ebp + 0x34]
ja 0x4f50b3
jb 0x4f5097
cmp eax, dword [ebp + 0x30]
jae 0x4f50b3
or dword [ebx + 0x48], 2
mov ecx, dword [ebp + 0x5c]
mov byte [ebp + 0x63], 0
cmp dword [edi + 0x1c], ecx
ja 0x4f50bf
mov eax, dword [ebp + 0x58]
jb 0x4f50b9
cmp dword [edi + 0x18], eax
jae 0x4f50bf
jmp 0x4f50b9
mov dword [ebp + 0x30], eax
mov dword [ebp + 0x34], ecx
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x18], eax
cmp byte [ebx + 0x13], 0
mov byte [ebp + 0x6b], 1
jne 0x4f5143
cmp dword [ebx + 0x7c], 0
jne 0x4f5143
lea ecx, [ebp - 0xb4]
call fcn.004f4a99
test al, al
je 0x4f5143
mov edx, dword [ebp - 0x68]
mov byte [ebx + 0x13], 1
test edx, edx
ja 0x4f5143
mov ecx, dword [ebp - 0x6c]
jb 0x4f50f6
cmp ecx, 0x40000
ja 0x4f5143
cmp ecx, dword [ebp - 0x74]
jne 0x4f5143
cmp edx, dword [ebp - 0x70]
jne 0x4f5143
mov eax, ecx
or eax, edx
je 0x4f5143
test dword [ebp - 0x84], 0x380
jne 0x4f5143
test byte [ebp - 0xb4], 0x18
jne 0x4f5143
lea eax, [ebx + 0x78]
push eax
push dword [ebp + 0x64]
lea eax, [ebp - 0xb4]
push edx
push ecx
push eax
lea ecx, [ebp - 0x134]
call fcn.004f24a5
mov esi, eax
test esi, esi
jne 0x4f5677
mov byte [ebp + 0x6b], al
mov eax, dword [ebx + 0x28]
or dword [ebp - 0xdc], 0xffffffff
or dword [ebp - 0xd8], 0xffffffff
cmp byte [ebp + 0x6b], 0
mov dword [ebp - 0xe4], eax
mov dword [ebp - 0xe0], eax
je 0x4f537f
cmp byte [ebp - 0xac], 3
jne 0x4f518f
lea ecx, [ebp - 0xb4]
call fcn.004f4b35
test al, al
je 0x4f51e8
mov eax, dword [ebp + 0x54]
test eax, eax
js 0x4f518f
mov dword [ebp - 0xdc], eax
mov ecx, dword [ebp - 0xb4]
mov eax, ecx
shr eax, 3
test al, 1
je 0x4f5362
mov eax, dword [ebp + 4]
test eax, eax
js 0x4f535e
mov esi, eax
mov eax, dword [ebx + 0x24]
shl esi, 4
add esi, dword [ebx + 0x18]
mov ecx, dword [esi + 4]
mov eax, dword [eax + ecx*4]
lea ecx, [ebp - 0xb4]
push eax
mov dword [ebp + 0x44], eax
call fcn.004f4a3f
test al, al
je 0x4f534c
mov ecx, dword [ebp + 0x44]
mov eax, dword [ebx + 0x28]
mov dword [esi + 4], eax
mov dword [ecx + 0x20], eax
xor al, al
jmp 0x4f534f
lea ecx, [ebp - 0xb4]
mov byte [ebp + 0x6b], 0
call fcn.004f4a7a
test al, al
je 0x4f537f
lea eax, [ebp + 0x44]
mov byte [ebx + 0x14], 1
push eax
push 1
lea ecx, [ebp - 0xb4]
call fcn.004f372c
mov edx, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x74]
test eax, eax
js 0x4f5224
cmp byte [ebp + 0x20], 0
je 0x4f524b
mov eax, dword [ebp - 0x84]
shr eax, 6
test al, 1
jne 0x4f524b
cmp dword [ebp + 0x54], 0
jl 0x4f524b
test edx, edx
ja 0x4f524b
jb 0x4f5245
cmp ecx, 0x1000000
jae 0x4f524b
mov eax, ecx
or eax, edx
jne 0x4f525d
mov al, 1
mov byte [ebx + 0x15], al
mov eax, dword [ebp + 0x54]
test eax, eax
js 0x4f537f
jmp 0x4f5260
mov eax, dword [ebp + 0x54]
test edx, edx
ja 0x4f537f
jb 0x4f5276
cmp ecx, 0x1000000
jae 0x4f537f
or ecx, edx
je 0x4f537f
mov ecx, eax
mov eax, dword [ebx + 0x18]
add ecx, ecx
mov ecx, dword [eax + ecx*8]
mov eax, dword [ebx + 0x24]
mov eax, dword [eax + ecx*4]
xor ecx, ecx
mov dword [ebp + 0x44], eax
cmp dword [eax + 0xc], ecx
jge 0x4f537f
mov dword [ebp + 0x48], ecx
mov dword [ebp + 0x4c], ecx
lea eax, [ebp + 0x48]
mov byte [ebp - 4], 0x31
push eax
lea eax, [ebp - 0x134]
push eax
push dword [ebp + 0x64]
lea eax, [ebp - 0xb4]
push eax
lea ecx, [ebp - 0x24]
call fcn.004f231a
mov esi, eax
mov eax, dword [ebp - 0xb4]
shr eax, 4
test al, 1
jne 0x4f52da
and dword [ebp - 0x1c], 0
mov byte [ebp - 0x18], 1
test esi, esi
je 0x4f52fd
and dword [ebp - 0x1c], 0
mov byte [ebp - 0x18], 1
cmp esi, 1
je 0x4f52f7
cmp esi, 0x80004001
jne 0x4f566e
mov byte [ebx + 0x15], 1
jmp 0x4f533d
cmp dword [ebp + 0x4c], 0
je 0x4f533d
cmp dword [ebx + 0x40], 0
lea esi, [ebx + 0x3c]
je 0x4f5321
mov edx, dword [esi + 4]
lea ecx, [ebp + 0x48]
mov eax, dword [esi]
mov edx, dword [eax + edx*4 - 4]
call fcn.004f1457
test al, al
je 0x4f5333
mov ecx, esi
call fcn.00403988
lea eax, [ebp + 0x48]
mov ecx, esi
push eax
call fcn.00428bd0
mov eax, dword [ebx + 0x40]
mov ecx, dword [ebp + 0x44]
dec eax
mov dword [ecx + 0xc], eax
push dword [ebp + 0x48]
mov byte [ebp - 4], 0x21
call fcn.0056651e
pop ecx
jmp 0x4f537f
mov al, byte [ebp + 0x6b]
mov byte [ebp + 0x6b], al
test al, al
je 0x4f537f
mov ecx, dword [ebp - 0xb4]
jmp 0x4f5362
mov byte [ebx + 0x16], 1
shr ecx, 4
test cl, 1
je 0x4f5370
mov eax, dword [ebx + 0x1c]
mov dword [ebp + 4], eax
cmp byte [ebp - 0xac], 3
je 0x4f537f
mov eax, dword [ebx + 0x1c]
mov dword [ebp + 0x54], eax
lea eax, [ebp - 0xbc]
push eax
lea ecx, [ebp - 0xb4]
call fcn.004f385c
test al, al
je 0x4f53ae
mov eax, dword [ebp - 0xbc]
mov ecx, dword [ebp - 0xb8]
mov byte [ebp - 0xab], 1
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], ecx
mov eax, dword [ebx + 0x34]
lea ecx, [ebx + 0x24]
dec eax
mov dword [ebp - 0x98], eax
call fcn.00403988
lea eax, [ebp - 0xb4]
push eax
lea ecx, [ebx + 0x24]
call fcn.004f1ade
cmp byte [ebp + 0x6b], 0
je 0x4f53ef
sub esp, 0x10
lea esi, [ebp - 0xe4]
mov edi, esp
lea ecx, [ebx + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004173a6
mov edi, dword [ebp]
mov edx, dword [ebp + 0x7c]
test edx, edx
je 0x4f5442
cmp byte [ebx + 0x28], 0
jne 0x4f5442
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ebx + 0x1c]
and dword [ebp - 0xc8], 0
add ecx, dword [ebp + 0x3c]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0x58]
adc eax, dword [ebp + 0x38]
mov dword [ebp - 0xc4], ecx
lea ecx, [ebp - 0xc4]
push ecx
mov dword [ebp - 0xc0], eax
lea ecx, [ebp - 0xcc]
mov eax, dword [edx]
push ecx
push edx
call dword [eax + 0x10]
mov esi, eax
test esi, esi
jne 0x4f5677
cmp byte [ebp + 0x63], 0
je 0x4f559c
lea ecx, [ebp - 0xb4]
call fcn.004f1c90
jmp 0x4f4fba
mov eax, dword [ebp + 0x30]
mov ecx, dword [ebp + 0x34]
mov dword [edi + 0x18], eax
lea eax, [edi + 0x20]
mov dword [edi + 0x1c], ecx
lea ecx, [ebp + 8]
push eax
mov byte [edi + 0x28], 1
call fcn.004f65e5
test al, al
jne 0x4f5480
or dword [ebx + 0x48], 2
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebp + 0x10]
jne 0x4f549f
cmp dword [ebp - 0xf4], 0
jne 0x4f549f
mov eax, dword [ebp - 0xec]
or eax, dword [ebp - 0xe8]
je 0x4f54a3
mov byte [edi + 0x30], 1
mov eax, dword [edi]
xor edx, edx
and eax, 1
or eax, edx
je 0x4f559c
mov eax, dword [ebp + 0x64]
push edx
push edx
push dword [edi + 0x1c]
mov ecx, dword [eax]
push dword [edi + 0x18]
push eax
call dword [ecx + 0x10]
mov esi, eax
test esi, esi
jne 0x4f5677
mov ecx, dword [ebp + 0x64]
lea edx, [ebp + 0x62]
push eax
push 0x1000
lea eax, [ebp - 0xd4]
push eax
call fcn.00482b3d
mov esi, eax
test esi, esi
jne 0x4f5677
cmp byte [ebp + 0x62], al
jne 0x4f559c
mov ecx, dword [ebp - 0xd4]
mov eax, ecx
mov edx, dword [ebp - 0xd0]
or eax, edx
je 0x4f559c
test edx, edx
ja 0x4f559c
jb 0x4f5520
cmp ecx, 0x1000
ja 0x4f559c
add dword [edi + 0x18], ecx
mov eax, dword [edi + 0x1c]
adc eax, edx
mov dword [edi + 0x1c], eax
jmp 0x4f559c
or dword [ebx + 0x48], 2
jmp 0x4f559c
or dword [ebx + 0x48], 0x100
jmp 0x4f559c
cmp esi, 1
jne 0x4f5677
cmp byte [ebp + 0x23], 0
mov eax, dword [ebx + 0x48]
je 0x4f5590
mov esi, dword [ebp + 0x34]
or eax, 0x20
mov dword [ebx + 0x48], eax
mov edx, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
cmp edx, esi
ja 0x4f5576
mov eax, dword [ebp + 0x30]
jb 0x4f556a
cmp ecx, eax
jae 0x4f5576
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], esi
mov ecx, dword [ebp + 0x30]
mov edx, dword [ebp + 0x34]
cmp edx, dword [ebp + 0x5c]
ja 0x4f559c
jb 0x4f5582
cmp ecx, dword [ebp + 0x58]
jae 0x4f559c
mov eax, dword [ebp + 0x58]
mov ecx, dword [ebp + 0x5c]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
jmp 0x4f559c
or eax, 2
mov dword [ebx + 0x48], eax
jmp 0x4f559c
or dword [ebx + 0x48], 0x20
mov eax, dword [ebp + 0x3c]
add eax, dword [ebp + 0x58]
mov esi, dword [ebp + 0x38]
adc esi, dword [ebp + 0x5c]
xor ecx, ecx
mov dword [ebp + 0x3c], eax
mov eax, dword [edi]
and eax, 1
mov dword [ebp + 0x38], esi
or eax, ecx
mov byte [ebp + 0x6b], cl
je 0x4f56b5
cmp byte [edi + 0x28], cl
je 0x4f55d7
mov eax, dword [edi + 0x20]
and eax, 1
or eax, ecx
je 0x4f568e
mov byte [ebp + 0x6b], 1
push dword [ebp - 0x80]
call fcn.0056651e
push dword [ebp - 0xa4]
call fcn.0056651e
push dword [ebp - 0x16c]
call fcn.0056651e
add esp, 0xc
mov eax, dword [ebp + 0x64]
mov edi, dword [ebp + 0x7c]
mov byte [ebp - 4], 0x3a
test eax, eax
je 0x4f4ddb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4f4ddb
call fcn.0056651e
pop ecx
mov byte [ebp - 4], 0xd
jmp 0x4f5724
lea ecx, [ebp - 0x40]
call fcn.0040a562
push dword [ebp - 0x30]
call fcn.0056651e
pop ecx
mov byte [ebp - 4], 0xc
jmp 0x4f5724
lea ecx, [ebp - 0x40]
call fcn.0040a562
push dword [ebp - 0x30]
jmp 0x4f564e
push dword [ebp - 0x4c]
call fcn.0056651e
pop ecx
mov eax, dword [ebp + 0x64]
mov byte [ebp - 4], 0x35
test eax, eax
je 0x4f5740
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4f5740
push dword [ebp + 0x48]
call fcn.0056651e
pop ecx
push dword [ebp - 0x80]
call fcn.0056651e
push dword [ebp - 0xa4]
call fcn.0056651e
pop ecx
pop ecx
jmp 0x4f56e5
push dword [ebp - 0x80]
call fcn.0056651e
push dword [ebp - 0xa4]
call fcn.0056651e
push dword [ebp - 0x16c]
call fcn.0056651e
add esp, 0xc
mov byte [ebp - 4], 0x39
jmp 0x4f5724
push dword [ebp - 0x80]
call fcn.0056651e
push dword [ebp - 0xa4]
call fcn.0056651e
push dword [ebp - 0x16c]
call fcn.0056651e
add esp, 0xc
mov byte [ebp - 4], 0x38
jmp 0x4f5724
cmp esi, 1
jne 0x4f56e5
test eax, eax
jne 0x4f56f0
push dword [ebp - 0x16c]
jmp 0x4f564e
push dword [ebp - 0x16c]
call fcn.0056651e
pop ecx
mov byte [ebp - 4], 0x20
jmp 0x4f5724
cmp byte [ebp + 0x6b], 0
je 0x4f5717
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebx + 0x80]
call fcn.0040272f
push dword [ebp - 0x4c]
call fcn.0056651e
pop ecx
mov byte [ebp - 4], 0x12
mov eax, dword [ebp + 0x64]
test eax, eax
je 0x4f5733
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4f5733
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.004f3488
xor esi, esi
lea ecx, [ebp + 8]
call fcn.004f18bc
lea ecx, [ebp - 0x134]
call fcn.004f1918
push dword [ebp - 0x24]
call fcn.0056651e
pop ecx
lea ecx, [ebp - 0x15c]
call fcn.004ed8c0
mov ecx, dword [ebp + 0x50]
mov dword [ebp - 4], 0x3b
test ecx, ecx
je 0x4f577b
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add ebp, 0x6c
leave
ret 0xc