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

Disassembly:
push 0xffffffffffffffff
push 0x52f57e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
push ebx
push ebp
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x58], ebx
mov al, byte [esp + 0x13]
xor esi, esi
xor ebp, ebp
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0xb4], esi
mov dword [esp + 0x48], ebp
mov byte [esp + 0x18], al
call fcn.00405cc0
lea ecx, [esp + 0xb8]
mov byte [esp + 0xb0], 1
mov dword [esp + 0x54], esi
call fcn.0048ab50
test ax, ax
jle 0x4f725d
mov ecx, dword [ebx + 0x14]
push esi
mov eax, dword [ecx + 0xcc]
lea ecx, [esp + 0xbc]
test eax, eax
je 0x4f720f
call fcn.0048a9e0
and eax, 0xff
lea edx, [esp + 0x4c]
push eax
push str._02x
push edx
jmp 0x4f7224
call fcn.0048a9e0
and eax, 0xff
push eax
lea eax, [esp + 0x50]
push 0x54a9a8
push eax
call fcn.00514b75
lea edi, [esp + 0x58]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004080a0
lea ecx, [esp + 0xb8]
inc esi
call fcn.0048ab50
movsx edx, ax
cmp esi, edx
jl 0x4f71e3
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0xcc]
test eax, eax
je 0x4f7286
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4f7277
mov eax, 0x53115c
push 0x10
push 0
push eax
call fcn.00515dbe
add esp, 0xc
jmp 0x4f72d8
lea ecx, [esp + 0x14]
call fcn.0049a5e0
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x14]
call fcn.0049a5e0
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4f72a8
xor ebp, ebp
jmp 0x4f72af
mov ecx, dword [esp + 0x1c]
lea ebp, [ecx + eax]
lea ecx, [esp + 0x14]
call fcn.0049a5e0
mov esi, dword [esp + 0x18]
cmp esi, ebp
je 0x4f72d4
movsx edx, byte [esi]
push edx
call fcn.00515658
add esp, 4
mov byte [edi], al
inc esi
inc edi
cmp esi, ebp
jne 0x4f72c0
mov ebp, dword [esp + 0x44]
lea eax, [esp + 0x7e]
lea ecx, [esp + 0x7f]
push eax
push 0
push ecx
lea ecx, [esp + 0x30]
call fcn.004f7ff0
mov eax, dword [ebx + 4]
xor esi, esi
test eax, eax
mov byte [esp + 0xb0], 2
jbe 0x4f7480
xor edi, edi
mov edx, dword [ebx + 0xc]
lea ecx, [esp + 0x6c]
mov eax, dword [edi + edx]
push eax
push ecx
mov ecx, dword [ebx + 0x10]
call fcn.004e8220
push 1
lea edx, [esp + 0x17]
push 0
push edx
lea ecx, [esp + 0x78]
mov byte [esp + 0xbc], 3
mov byte [esp + 0x1f], 0x2a
call fcn.004ab270
cmp eax, dword [0x531160]
je 0x4f73e4
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x80]
push eax
call fcn.0040d030
mov dword [esp + 0x90], esi
lea ecx, [esp + 0x80]
mov byte [esp + 0xb0], 4
push ecx
lea ecx, [esp + 0x98]
call fcn.0040d030
mov edx, dword [esp + 0x90]
mov dword [esp + 0xa4], edx
lea eax, [esp + 0x94]
lea ecx, [esp + 0x44]
push eax
push ecx
lea ecx, [esp + 0x2c]
mov byte [esp + 0xb8], 5
call fcn.004f8020
lea edx, [esp + 0x48]
lea eax, [esp + 0x44]
push edx
push eax
lea ecx, [esp + 0x3c]
call fcn.004b3720
push 1
lea ecx, [esp + 0x98]
mov byte [esp + 0xb4], 4
call fcn.00405cc0
push 1
lea ecx, [esp + 0x84]
mov byte [esp + 0xb4], 3
call fcn.00405cc0
jmp 0x4f745e
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x70]
call fcn.004b3c70
test eax, eax
je 0x4f74e2
push str.0000
lea ecx, [esp + 0x70]
call fcn.004a4780
test eax, eax
jne 0x4f7422
push 0x549d84
lea ecx, [esp + 0x18]
call fcn.004a4780
test eax, eax
je 0x4f74e2
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x74]
cmp eax, edx
ja 0x4f7430
mov edx, eax
mov ecx, dword [esp + 0x70]
test ecx, ecx
jne 0x4f743d
mov ecx, 0x53115c
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4f744a
mov eax, 0x53115c
push edx
push ecx
push eax
mov ecx, ebx
call fcn.004f70f0
cmp eax, ebp
jbe 0x4f745e
mov ebp, eax
mov dword [esp + 0x54], esi
push 1
lea ecx, [esp + 0x70]
mov byte [esp + 0xb4], 2
call fcn.00405cc0
mov eax, dword [ebx + 4]
inc esi
add edi, 0x24
cmp esi, eax
jb 0x4f7304
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
cmp ecx, eax
mov dword [esp + 0x50], ecx
je 0x4f75c8
mov eax, dword [ecx + 0x14]
mov edx, dword [esp + 0x1c]
cmp edx, eax
jbe 0x4f749f
mov edx, eax
mov eax, dword [ecx + 0x10]
mov ecx, 0x53115c
test eax, eax
je 0x4f74ad
mov ecx, eax
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4f74ba
mov eax, 0x53115c
push edx
push ecx
push eax
mov ecx, ebx
call fcn.004f7130
test eax, eax
jne 0x4f7521
lea ecx, [esp + 0x50]
call fcn.004f8aa0
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x28]
cmp ecx, eax
jne 0x4f7492
jmp 0x4f75c8
push 1
lea ecx, [esp + 0x70]
mov dword [ebx + 0x18], esi
mov byte [esp + 0xb4], 2
call fcn.00405cc0
lea ecx, [esp + 0x24]
mov byte [esp + 0xb0], 1
call fcn.004f7f40
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0xb4], 0
call fcn.00405cc0
jmp 0x4f7bd1
mov edx, dword [esp + 0x50]
or esi, 0xffffffff
mov edi, 0x54af44
mov ecx, esi
xor eax, eax
add edx, 0xc
repne scasb al, byte es:[edi]
mov eax, dword [edx + 8]
not ecx
dec ecx
push ecx
push 0x54af44
push eax
push 0
mov ecx, edx
call fcn.0049a570
test eax, eax
jne 0x4f758e
lea ecx, [esp + 0x24]
mov byte [esp + 0xb0], 1
call fcn.004f7f40
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0xb4], 0
call fcn.00405cc0
lea ecx, [esp + 0xb8]
mov dword [esp + 0xb0], esi
call fcn.0048a720
xor eax, eax
jmp 0x4f7bed
mov ecx, dword [esp + 0x50]
mov byte [esp + 0xb0], 1
mov edx, dword [ecx + 0x1c]
lea ecx, [esp + 0x24]
mov dword [ebx + 0x18], edx
call fcn.004f7f40
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0xb4], 0
call fcn.00405cc0
mov dword [esp + 0xb0], esi
jmp 0x4f7bdc
mov eax, dword [ebx + 0x18]
or esi, 0xffffffff
cmp eax, esi
jne 0x4f75e9
mov ecx, dword [ebx + 0x14]
call fcn.004cc650
test eax, eax
je 0x4f7550
mov eax, dword [esp + 0x54]
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x4f78f7
mov ecx, dword [eax + 0x2018]
test ecx, ecx
jne 0x4f78f7
lea ecx, [esp + 0x34]
push 0xc
push ecx
mov ecx, 0x55eb50
call fcn.004b2c30
mov edi, 0x54ffc0
or ecx, 0xffffffff
xor eax, eax
mov bl, 6
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0xb0], bl
push ecx
push 0x54ffc0
lea ecx, [esp + 0x3c]
call fcn.004080a0
mov edx, dword [0x531160]
lea eax, [esp + 0x14]
push edx
push 0
push eax
lea ecx, [esp + 0x40]
call fcn.00407fc0
mov edi, 0x54ffc0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x54ffc0
lea ecx, [esp + 0x3c]
call fcn.004080a0
lea ecx, [esp + 0x6c]
push 0xd
push ecx
mov ecx, 0x55eb50
call fcn.004b2c30
mov edx, dword [0x531160]
lea ecx, [esp + 0x34]
push edx
push 0
push eax
mov byte [esp + 0xbc], 7
call fcn.00407fc0
push 1
lea ecx, [esp + 0x70]
mov byte [esp + 0xb4], bl
call fcn.00405cc0
push 0
push 1
sub esp, 0x10
mov ecx, 0x55eb50
mov eax, esp
mov dword [esp + 0x5c], esp
push 0xf
push eax
call fcn.004b2c30
sub esp, 0x10
lea ecx, [esp + 0x3b]
mov esi, esp
mov dword [esp + 0x7c], esp
push ecx
lea ecx, [esp + 0x60]
mov byte [esp + 0xdc], 8
call fcn.004152f0
push eax
mov ecx, esi
call fcn.00407a70
mov ecx, 0x55b3d0
mov byte [esp + 0xd8], bl
call fcn.004995c0
lea edx, [esp + 0x6c]
push 0xe
push edx
mov ecx, 0x55eb50
call fcn.004b2c30
mov ecx, dword [0x531160]
mov byte [esp + 0xb0], 9
push ecx
push 0
push eax
lea ecx, [esp + 0x40]
call fcn.00407be0
push 1
lea ecx, [esp + 0x70]
mov byte [esp + 0xb4], bl
call fcn.00405cc0
mov edi, 0x54ffc0
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x531160]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [esp + 0x3c]
sub edx, ecx
cmp edx, esi
ja 0x4f7763
call fcn.00514140
test esi, esi
jbe 0x4f77a8
mov eax, dword [esp + 0x3c]
push 0
lea ecx, [esp + 0x38]
lea ebp, [eax + esi]
push ebp
call fcn.00408220
test al, al
je 0x4f77a8
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push ebp
lea edi, [edx + ecx]
mov ecx, esi
mov eax, ecx
mov esi, 0x54ffc0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x38]
call fcn.00408200
mov ecx, dword [esp + 0x58]
mov eax, dword [ecx + 0x18]
lea edx, [eax + eax*8]
mov eax, dword [ecx + 0xc]
mov ecx, dword [ecx + 0x10]
mov edx, dword [eax + edx*4]
lea eax, [esp + 0x6c]
push edx
push eax
call fcn.004e8220
mov ecx, dword [0x531160]
mov byte [esp + 0xb0], 0xa
push ecx
push 0
push eax
lea ecx, [esp + 0x40]
call fcn.00407fc0
mov eax, dword [esp + 0x70]
mov byte [esp + 0xb0], bl
test eax, eax
je 0x4f780d
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4f7804
cmp al, 0xff
je 0x4f7804
dec al
mov byte [ecx], al
jmp 0x4f780d
push ecx
call fcn.00514120
add esp, 4
mov edi, 0x54ffc0
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x531160]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [esp + 0x3c]
sub edx, ecx
cmp edx, esi
ja 0x4f7833
call fcn.00514140
test esi, esi
jbe 0x4f7878
mov eax, dword [esp + 0x3c]
push 0
lea ecx, [esp + 0x38]
lea ebp, [eax + esi]
push ebp
call fcn.00408220
test al, al
je 0x4f7878
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push ebp
lea edi, [edx + ecx]
mov ecx, esi
mov eax, ecx
mov esi, 0x54ffc0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x38]
call fcn.00408200
push 0
push 1
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x5c], esp
push 0xf
push ecx
mov ecx, 0x55eb50
call fcn.004b2c30
sub esp, 0x10
lea edx, [esp + 0x3b]
mov esi, esp
mov dword [esp + 0x7c], esp
push edx
lea ecx, [esp + 0x60]
mov byte [esp + 0xdc], 0xb
call fcn.004152f0
push eax
mov ecx, esi
call fcn.00407a70
mov ecx, 0x55b3d0
mov byte [esp + 0xd8], bl
call fcn.004995c0
mov eax, dword [esp + 0x38]
mov byte [esp + 0xb0], 2
test eax, eax
je 0x4f78f7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4f78ee
cmp al, 0xff
je 0x4f78ee
dec al
mov byte [ecx], al
jmp 0x4f78f7
push ecx
call fcn.00514120
add esp, 4
mov edi, dword [esp + 0x58]
lea eax, [esp + 0x5c]
push eax
mov ecx, edi
call fcn.004f7ee0
mov eax, dword [esp + 0x64]
xor esi, esi
cmp eax, esi
mov byte [esp + 0xb0], 0xc
je 0x4f7b17
cmp dword [edi + 0x14], esi
je 0x4f7a3f
mov dl, byte [esp + 0x5c]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x54], esp
mov byte [ecx], dl
mov dword [ecx + 4], esi
mov dword [ecx + 8], esi
mov dword [ecx + 0xc], esi
mov eax, dword [0x531160]
lea edx, [esp + 0x6c]
push eax
push esi
push edx
call fcn.00407be0
mov ecx, dword [edi + 0x14]
call fcn.004bdde0
mov edi, eax
mov eax, dword [esp + 0x60]
cmp eax, esi
je 0x4f797e
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4f7975
cmp al, 0xff
je 0x4f7975
dec al
mov byte [ecx], al
jmp 0x4f797e
push ecx
call fcn.00514120
add esp, 4
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x44]
push eax
push ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov byte [esp + 0xb8], 1
call fcn.004d9680
mov edx, dword [eax]
lea eax, [esp + 0x5c]
push edx
push eax
lea ecx, [esp + 0x30]
call fcn.004f8280
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00514120
mov eax, dword [0x560428]
add esp, 4
dec eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], esi
mov dword [0x560428], eax
jne 0x4f79f0
mov eax, dword [0x560424]
mov dword [0x560424], esi
cmp eax, esi
je 0x4f79f0
push eax
call fcn.00514120
add esp, 4
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x4f7a15
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4f7a0c
cmp al, 0xff
je 0x4f7a0c
dec al
mov byte [ecx], al
jmp 0x4f7a15
push ecx
call fcn.00514120
add esp, 4
lea ecx, [esp + 0xb8]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0xb0], 0xffffffff
call fcn.0048a720
mov eax, edi
jmp 0x4f7bed
mov eax, dword [esp + 0x60]
cmp eax, esi
je 0x4f7a64
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4f7a5b
cmp al, 0xff
je 0x4f7a5b
dec al
mov byte [ecx], al
jmp 0x4f7a64
push ecx
call fcn.00514120
add esp, 4
mov eax, dword [esp + 0x28]
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
mov ecx, dword [eax]
push eax
lea edx, [esp + 0x48]
push ecx
push edx
lea ecx, [esp + 0x30]
mov byte [esp + 0xbc], 1
call fcn.004f8280
mov eax, dword [esp + 0x28]
push eax
call fcn.00514120
mov eax, dword [0x560428]
add esp, 4
dec eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], esi
mov dword [0x560428], eax
jne 0x4f7ac8
mov eax, dword [0x560424]
mov dword [0x560424], esi
cmp eax, esi
je 0x4f7ac8
push eax
call fcn.00514120
add esp, 4
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x4f7aed
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4f7ae4
cmp al, 0xff
je 0x4f7ae4
dec al
mov byte [ecx], al
jmp 0x4f7aed
push ecx
call fcn.00514120
add esp, 4
lea ecx, [esp + 0xb8]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0xb0], 0xffffffff
call fcn.0048a720
xor eax, eax
jmp 0x4f7bed
mov eax, dword [esp + 0x60]
cmp eax, esi
je 0x4f7b3c
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4f7b33
cmp al, 0xff
je 0x4f7b33
dec al
mov byte [ecx], al
jmp 0x4f7b3c
push ecx
call fcn.00514120
add esp, 4
mov eax, dword [esp + 0x28]
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
mov ecx, dword [eax]
push eax
push ecx
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x30]
mov byte [esp + 0xbc], 1
call fcn.004f8280
mov edx, dword [esp + 0x28]
push edx
call fcn.00514120
mov eax, dword [0x560428]
add esp, 4
dec eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], esi
mov dword [0x560428], eax
jne 0x4f7ba0
mov eax, dword [0x560424]
mov dword [0x560424], esi
cmp eax, esi
je 0x4f7ba0
push eax
call fcn.00514120
add esp, 4
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x4f7bc5
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4f7bbc
cmp al, 0xff
je 0x4f7bbc
dec al
mov byte [ecx], al
jmp 0x4f7bc5
push ecx
call fcn.00514120
add esp, 4
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0xb0], 0xffffffff
lea ecx, [esp + 0xb8]
call fcn.0048a720
mov eax, 1
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xa4
ret 4