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

Disassembly:
push ebp
sub esp, 0x68
mov eax, 0x5769fb
call fcn.00566e38
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.004ed67d
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.004f1634
mov edi, dword [ebp + 0x7c]
mov byte [ebp - 4], 3
test edi, edi
je 0x4f4cd3
mov eax, dword [edi]
lea ecx, [ebp + 0x50]
push ecx
push 0x57d704
push edi
call dword [eax]
mov eax, dword [edi]
lea ecx, [ebp - 0x118]
push ecx
push 0x57d804
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 0x4f4d24
push dword [ebp + 0x74]
lea ecx, [ebp + 0x64]
call fcn.0040f64c
jmp 0x4f4dfc
cmp dword [ebp + 0x50], 0
je 0x4f565e
cmp dword [ebx + 0x34], 1
jne 0x4f4dab
lea ecx, [ebp - 0x30]
call fcn.004025e6
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 0x4f5569
push 8
pop eax
cmp word [ebp - 0x40], ax
jne 0x4f554f
push dword [ebp - 0x38]
lea ecx, [ebp - 0x30]
call fcn.004027d6
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 7
call fcn.0040a506
push 1
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x15c]
call fcn.004f01c4
push dword [ebp - 0x30]
test al, al
je 0x4f5540
mov byte [ebp - 4], 5
call fcn.00566e0e
pop ecx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x15c]
call fcn.004efdd0
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 0x4f4ddd
cmp esi, 1
jne 0x4f5576
cmp dword [ebp + 0x64], 0
je 0x4f563a
test esi, esi
jne 0x4f563a
push dword [ebp - 0x4c]
mov byte [ebp - 4], 5
call fcn.00566e0e
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.00414941
mov esi, eax
test esi, esi
jne 0x4f557f
test edi, edi
je 0x4f4e42
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 0x4f557f
lea ecx, [ebp - 0x1cc]
call fcn.004f14b0
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.004f570d
mov cl, byte [ebp + 0x22]
mov esi, eax
test cl, cl
je 0x4f4e7f
cmp byte [ebp + 0x23], 0
je 0x4f4e7f
or dword [ebx + 0x48], 0x20
mov eax, dword [ebx + 0x34]
test eax, eax
jne 0x4f4e89
mov byte [ebx + 0x10], cl
test esi, esi
jne 0x4f5607
lea ecx, [ebx + 0x30]
call fcn.004f1a4d
mov edi, eax
lea eax, [ebp - 0x1cc]
push eax
lea ecx, [edi + 8]
mov dword [ebp], ecx
call fcn.004f18eb
mov esi, dword [ebp + 0x64]
test esi, esi
je 0x4f4eba
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, dword [edi]
test ecx, ecx
je 0x4f4ec6
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea ecx, [ebp - 0xb4]
mov dword [edi], esi
call fcn.004f15be
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 0x21
call fcn.004f1bb9
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 0x4f54c3
mov edx, dword [ebp + 0x30]
jb 0x4f4f0b
cmp edx, dword [ebp + 0x58]
ja 0x4f54c3
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 0x4f55a2
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp + 8]
call fcn.004f6127
mov esi, eax
test esi, esi
jne 0x4f5467
mov eax, dword [ebp - 0x104]
mov ecx, dword [ebp - 0x100]
cmp eax, 5
jne 0x4f4f56
test ecx, ecx
je 0x4f5387
cmp eax, 2
jne 0x4f4f5f
test ecx, ecx
je 0x4f4f70
cmp eax, 3
jne 0x4f545e
test ecx, ecx
jne 0x4f545e
mov byte [ebp - 0xac], al
lea ecx, [ebp + 8]
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.004f6364
test al, al
je 0x4f5458
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 0x4f4fde
jb 0x4f4fc2
cmp eax, dword [ebp + 0x30]
jae 0x4f4fde
or dword [ebx + 0x48], 2
mov ecx, dword [ebp + 0x5c]
mov byte [ebp + 0x63], 0
cmp dword [edi + 0x1c], ecx
ja 0x4f4fea
mov eax, dword [ebp + 0x58]
jb 0x4f4fe4
cmp dword [edi + 0x18], eax
jae 0x4f4fea
jmp 0x4f4fe4
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 0x4f506e
cmp dword [ebx + 0x7c], 0
jne 0x4f506e
lea ecx, [ebp - 0xb4]
call fcn.004f49c4
test al, al
je 0x4f506e
mov edx, dword [ebp - 0x68]
mov byte [ebx + 0x13], 1
test edx, edx
ja 0x4f506e
mov ecx, dword [ebp - 0x6c]
jb 0x4f5021
cmp ecx, 0x40000
ja 0x4f506e
cmp ecx, dword [ebp - 0x74]
jne 0x4f506e
cmp edx, dword [ebp - 0x70]
jne 0x4f506e
mov eax, ecx
or eax, edx
je 0x4f506e
test dword [ebp - 0x84], 0x380
jne 0x4f506e
test byte [ebp - 0xb4], 0x18
jne 0x4f506e
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.004f23ce
mov esi, eax
test esi, esi
jne 0x4f55a2
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 0x4f52aa
cmp byte [ebp - 0xac], 3
jne 0x4f50ba
lea ecx, [ebp - 0xb4]
call fcn.004f4a60
test al, al
je 0x4f5113
mov eax, dword [ebp + 0x54]
test eax, eax
js 0x4f50ba
mov dword [ebp - 0xdc], eax
mov ecx, dword [ebp - 0xb4]
mov eax, ecx
shr eax, 3
test al, 1
je 0x4f528d
mov eax, dword [ebp + 4]
test eax, eax
js 0x4f5289
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.004f496a
test al, al
je 0x4f5277
mov ecx, dword [ebp + 0x44]
mov eax, dword [ebx + 0x28]
mov dword [esi + 4], eax
mov dword [ecx + 0x20], eax
xor al, al
jmp 0x4f527a
lea ecx, [ebp - 0xb4]
mov byte [ebp + 0x6b], 0
call fcn.004f49a5
test al, al
je 0x4f52aa
lea eax, [ebp + 0x44]
mov byte [ebx + 0x14], 1
push eax
push 1
lea ecx, [ebp - 0xb4]
call fcn.004f3657
mov edx, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x74]
test eax, eax
js 0x4f514f
cmp byte [ebp + 0x20], 0
je 0x4f5176
mov eax, dword [ebp - 0x84]
shr eax, 6
test al, 1
jne 0x4f5176
cmp dword [ebp + 0x54], 0
jl 0x4f5176
test edx, edx
ja 0x4f5176
jb 0x4f5170
cmp ecx, 0x1000000
jae 0x4f5176
mov eax, ecx
or eax, edx
jne 0x4f5188
mov al, 1
mov byte [ebx + 0x15], al
mov eax, dword [ebp + 0x54]
test eax, eax
js 0x4f52aa
jmp 0x4f518b
mov eax, dword [ebp + 0x54]
test edx, edx
ja 0x4f52aa
jb 0x4f51a1
cmp ecx, 0x1000000
jae 0x4f52aa
or ecx, edx
je 0x4f52aa
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 0x4f52aa
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.004f2243
mov esi, eax
mov eax, dword [ebp - 0xb4]
shr eax, 4
test al, 1
jne 0x4f5205
and dword [ebp - 0x1c], 0
mov byte [ebp - 0x18], 1
test esi, esi
je 0x4f5228
and dword [ebp - 0x1c], 0
mov byte [ebp - 0x18], 1
cmp esi, 1
je 0x4f5222
cmp esi, 0x80004001
jne 0x4f5599
mov byte [ebx + 0x15], 1
jmp 0x4f5268
cmp dword [ebp + 0x4c], 0
je 0x4f5268
cmp dword [ebx + 0x40], 0
lea esi, [ebx + 0x3c]
je 0x4f524c
mov edx, dword [esi + 4]
lea ecx, [ebp + 0x48]
mov eax, dword [esi]
mov edx, dword [eax + edx*4 - 4]
call fcn.004f1380
test al, al
je 0x4f525e
mov ecx, esi
call fcn.0040393c
lea eax, [ebp + 0x48]
mov ecx, esi
push eax
call fcn.00428af0
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.00566e0e
pop ecx
jmp 0x4f52aa
mov al, byte [ebp + 0x6b]
mov byte [ebp + 0x6b], al
test al, al
je 0x4f52aa
mov ecx, dword [ebp - 0xb4]
jmp 0x4f528d
mov byte [ebx + 0x16], 1
shr ecx, 4
test cl, 1
je 0x4f529b
mov eax, dword [ebx + 0x1c]
mov dword [ebp + 4], eax
cmp byte [ebp - 0xac], 3
je 0x4f52aa
mov eax, dword [ebx + 0x1c]
mov dword [ebp + 0x54], eax
lea eax, [ebp - 0xbc]
push eax
lea ecx, [ebp - 0xb4]
call fcn.004f3787
test al, al
je 0x4f52d9
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.0040393c
lea eax, [ebp - 0xb4]
push eax
lea ecx, [ebx + 0x24]
call fcn.004f1a07
cmp byte [ebp + 0x6b], 0
je 0x4f531a
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.00417326
mov edi, dword [ebp]
mov edx, dword [ebp + 0x7c]
test edx, edx
je 0x4f536d
cmp byte [ebx + 0x28], 0
jne 0x4f536d
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 0x4f55a2
cmp byte [ebp + 0x63], 0
je 0x4f54c7
lea ecx, [ebp - 0xb4]
call fcn.004f1bb9
jmp 0x4f4ee5
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.004f6510
test al, al
jne 0x4f53ab
or dword [ebx + 0x48], 2
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebp + 0x10]
jne 0x4f53ca
cmp dword [ebp - 0xf4], 0
jne 0x4f53ca
mov eax, dword [ebp - 0xec]
or eax, dword [ebp - 0xe8]
je 0x4f53ce
mov byte [edi + 0x30], 1
mov eax, dword [edi]
xor edx, edx
and eax, 1
or eax, edx
je 0x4f54c7
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 0x4f55a2
mov ecx, dword [ebp + 0x64]
lea edx, [ebp + 0x62]
push eax
push 0x1000
lea eax, [ebp - 0xd4]
push eax
call fcn.004829fd
mov esi, eax
test esi, esi
jne 0x4f55a2
cmp byte [ebp + 0x62], al
jne 0x4f54c7
mov ecx, dword [ebp - 0xd4]
mov eax, ecx
mov edx, dword [ebp - 0xd0]
or eax, edx
je 0x4f54c7
test edx, edx
ja 0x4f54c7
jb 0x4f544b
cmp ecx, 0x1000
ja 0x4f54c7
add dword [edi + 0x18], ecx
mov eax, dword [edi + 0x1c]
adc eax, edx
mov dword [edi + 0x1c], eax
jmp 0x4f54c7
or dword [ebx + 0x48], 2
jmp 0x4f54c7
or dword [ebx + 0x48], 0x100
jmp 0x4f54c7
cmp esi, 1
jne 0x4f55a2
cmp byte [ebp + 0x23], 0
mov eax, dword [ebx + 0x48]
je 0x4f54bb
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 0x4f54a1
mov eax, dword [ebp + 0x30]
jb 0x4f5495
cmp ecx, eax
jae 0x4f54a1
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 0x4f54c7
jb 0x4f54ad
cmp ecx, dword [ebp + 0x58]
jae 0x4f54c7
mov eax, dword [ebp + 0x58]
mov ecx, dword [ebp + 0x5c]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
jmp 0x4f54c7
or eax, 2
mov dword [ebx + 0x48], eax
jmp 0x4f54c7
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 0x4f55e0
cmp byte [edi + 0x28], cl
je 0x4f5502
mov eax, dword [edi + 0x20]
and eax, 1
or eax, ecx
je 0x4f55b9
mov byte [ebp + 0x6b], 1
push dword [ebp - 0x80]
call fcn.00566e0e
push dword [ebp - 0xa4]
call fcn.00566e0e
push dword [ebp - 0x16c]
call fcn.00566e0e
add esp, 0xc
mov eax, dword [ebp + 0x64]
mov edi, dword [ebp + 0x7c]
mov byte [ebp - 4], 0x3a
test eax, eax
je 0x4f4d06
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4f4d06
call fcn.00566e0e
pop ecx
mov byte [ebp - 4], 0xd
jmp 0x4f562b
lea ecx, [ebp - 0x40]
call fcn.0040a506
push dword [ebp - 0x30]
call fcn.00566e0e
pop ecx
mov byte [ebp - 4], 0xc
jmp 0x4f562b
lea ecx, [ebp - 0x40]
call fcn.0040a506
push dword [ebp - 0x30]
jmp 0x4f5579
push dword [ebp - 0x4c]
call fcn.00566e0e
pop ecx
mov eax, dword [ebp + 0x64]
mov byte [ebp - 4], 0x35
test eax, eax
je 0x4f566b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4f566b
push dword [ebp + 0x48]
call fcn.00566e0e
pop ecx
push dword [ebp - 0x80]
call fcn.00566e0e
push dword [ebp - 0xa4]
call fcn.00566e0e
pop ecx
pop ecx
jmp 0x4f5610
push dword [ebp - 0x80]
call fcn.00566e0e
push dword [ebp - 0xa4]
call fcn.00566e0e
push dword [ebp - 0x16c]
call fcn.00566e0e
add esp, 0xc
mov byte [ebp - 4], 0x39
jmp 0x4f562b
push dword [ebp - 0x80]
call fcn.00566e0e
push dword [ebp - 0xa4]
call fcn.00566e0e
push dword [ebp - 0x16c]
call fcn.00566e0e
add esp, 0xc
mov byte [ebp - 4], 0x38
jmp 0x4f562b
cmp esi, 1
jne 0x4f5610
test eax, eax
jne 0x4f561b
push dword [ebp - 0x16c]
jmp 0x4f5579
push dword [ebp - 0x16c]
call fcn.00566e0e
pop ecx
mov byte [ebp - 4], 0x20
mov eax, dword [ebp + 0x64]
test eax, eax
je 0x4f565e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4f565e
cmp byte [ebp + 0x6b], 0
je 0x4f564f
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebx + 0x80]
call fcn.00402707
push dword [ebp - 0x4c]
call fcn.00566e0e
pop ecx
mov byte [ebp - 4], 0x12
jmp 0x4f562b
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.004f33b3
xor esi, esi
lea ecx, [ebp + 8]
call fcn.004f17e5
lea ecx, [ebp - 0x134]
call fcn.004f1841
push dword [ebp - 0x24]
call fcn.00566e0e
pop ecx
lea ecx, [ebp - 0x15c]
call fcn.004ed7d1
mov ecx, dword [ebp + 0x50]
mov dword [ebp - 4], 0x3b
test ecx, ecx
je 0x4f56a6
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