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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x274
mov eax, dword [0x5b16b0]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x3cb0]
xor ebx, ebx
mov ecx, 1
cmp dword [esi + 0xdc0], ecx
push edi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x18], eax
je 0x4f1c69
cmp dword [esi + 0x19c], ebx
mov dword [esp + 0x1c], ebx
je 0x4f1c6d
mov dword [esp + 0x1c], ecx
cmp dword [esi + 0xdd4], ebx
mov dword [esp + 0x38], ebx
mov dword [esi + 0x2124], ebx
mov byte [esi + 0x371c], bl
je 0x4f1ce0
mov eax, dword [esi + 0xdc4]
mov edx, dword [esi + 0x1ee4]
add edx, eax
cmp dword [esi + 0x1ef8], edx
jne 0x4f1ce0
mov edx, dword [esi + 0x1fc0]
mov al, byte [eax + edx]
cmp al, 6
je 0x4f1cac
cmp al, 0x12
jne 0x4f1ce0
mov eax, dword [esi + 0x2114]
cmp eax, 6
mov dword [esp + 0x38], ecx
je 0x4f1cc5
cmp eax, 0x12
jne 0x4f1ce0
cmp eax, 6
jne 0x4f1cd1
mov dword [esi + 0x2114], 4
jmp 0x4f1ce0
cmp eax, 0x12
jne 0x4f1ce0
mov dword [esi + 0x2114], 7
mov eax, dword [esi + 0x2114]
cmp eax, 6
jne 0x4f1d05
call fcn.004f18e0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.00499441
mov esp, ebp
pop ebp
ret
cmp eax, 0x12
jne 0x4f1d5e
cmp dword [esi + 0x2138], ebx
jne 0x4f1d1b
push esi
call fcn.004cd170
add esp, 4
push 0x30
lea eax, [esi + 0x36f0]
push ebx
push eax
mov dword [esi + 0x2124], ebx
mov dword [esi + 0x2128], ebx
call fcn.004a1c90
mov ecx, dword [esi + 0x1ef8]
mov edx, dword [esi + 0x1fc8]
add esp, 0xc
mov word [edx + ecx*2], bx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.00499441
mov esp, ebp
pop ebp
ret
mov edi, 2
cmp eax, edi
jne 0x4f1dbc
cmp dword [esi + 0x3cc4], ebx
mov eax, dword [esi + 0x212c]
mov dword [esi + 0x2120], ebx
je 0x4f1d97
push eax
push esi
call fcn.004f1ba0
mov eax, dword [esp + 0x20]
add esp, 8
push eax
call fcn.004f1000
add esp, 4
jmp 0x4f2627
mov ecx, dword [esi + 0x3020]
mov edx, dword [esi + eax*4 + 0x4a24]
push ecx
call edx
mov eax, dword [esp + 0x1c]
add esp, 4
push eax
call fcn.004f1000
add esp, 4
jmp 0x4f2627
cmp eax, ecx
jne 0x4f1f30
cmp dword [esi + 0x2134], ebx
mov dword [esi + 0x2120], ecx
je 0x4f1e57
mov edx, dword [esi + 0x3020]
mov eax, dword [esi + 0x4d00]
push 0x10
push 0x10
lea ecx, [esi + 0x2720]
push ecx
push 0x20
push edx
call eax
mov ecx, dword [esi + 0x2b90]
mov edx, dword [esi + 0x2b94]
mov eax, dword [esi + 0x2b98]
mov dword [esi + 0x36fc], ecx
mov ecx, dword [esi + 0x2b9c]
mov dword [esi + 0x3704], edx
mov edx, dword [esi + 0x2ba4]
add esp, 0x14
cmp dword [esi + 0x2134], edi
mov dword [esi + 0x370c], eax
mov dword [esi + 0x3714], ecx
mov dword [esi + 0x2124], edx
jne 0x4f1e57
mov edx, dword [esi + 0x4d30]
push 0x180
lea eax, [esi + 0x2820]
push eax
lea ecx, [esi + 0x19e0]
push ecx
call edx
add esp, 0xc
mov edi, dword [esi + 0x2134]
neg edi
sbb edi, edi
and edi, 3
cmp edi, 4
jge 0x4f2627
mov ebx, edi
shl ebx, 4
lea eax, [esi + edi*4 + 0x1f58]
add ebx, 0x587e40
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x3020]
mov ecx, edi
sar ecx, 1
shl ecx, 5
mov edx, edi
and edx, 1
add ecx, edx
lea eax, [eax + ecx*8]
mov ecx, dword [ebx]
movsx ecx, byte [esi + ecx + 0x36c0]
movzx edx, byte [ecx + 0x587eac]
push edx
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
push edx
mov edx, dword [esi + 0x4abc]
lea ecx, [esp + 0x48]
push ecx
push eax
mov dword [esp + 0x34], eax
call edx
add esp, 0x10
cmp dword [esi + 0x3cc4], 0
lea eax, [esp + 0x40]
push eax
je 0x4f1ef0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
push ecx
push edi
push edx
push esi
call fcn.004f1b20
add esp, 0x14
jmp 0x4f1f05
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov eax, dword [esi + edx*4 + 0x4a5c]
push ecx
call eax
add esp, 8
mov ecx, dword [esp + 0x18]
push ecx
push edi
push esi
call fcn.004f0df0
add dword [esp + 0x20], 4
add ebx, 0x10
add esp, 0xc
add edi, 1
cmp ebx, 0x587e80
jl 0x4f1e83
jmp 0x4f2627
cmp eax, ebx
jne 0x4f2067
cmp dword [esi + 0x2134], ebx
mov dword [esi + 0x2120], ebx
je 0x4f1fcb
mov eax, dword [esi + 0x3020]
mov ecx, dword [esi + 0x4d00]
push 0x10
push 0x10
lea edx, [esi + 0x2620]
push edx
push 0x20
push eax
call ecx
mov edx, dword [esi + 0x2b80]
mov eax, dword [esi + 0x2b84]
mov ecx, dword [esi + 0x2b88]
mov dword [esi + 0x36fc], edx
mov edx, dword [esi + 0x2b8c]
mov dword [esi + 0x3704], eax
mov eax, dword [esi + 0x2ba0]
add esp, 0x14
cmp dword [esi + 0x2134], edi
mov dword [esi + 0x370c], ecx
mov dword [esi + 0x3714], edx
mov dword [esi + 0x2124], eax
jne 0x4f1fcb
mov eax, dword [esi + 0x4d30]
push 0x1e0
lea ecx, [esi + 0x29a0]
push ecx
lea edx, [esi + 0x1be0]
push edx
call eax
add esp, 0xc
mov edi, dword [esi + 0x2134]
neg edi
sbb edi, edi
and edi, 0xf
cmp edi, 0x10
jge 0x4f2627
lea ebx, [esi + edi*4 + 0x1f68]
jmp 0x4f1ff0
movzx eax, word [edi*2 + 0x588068]
mov edx, dword [ebx]
add eax, dword [esi + 0x3020]
mov ecx, dword [edi*4 + 0x587e40]
movsx ecx, byte [ecx + esi + 0x36c0]
and dl, 6
cmp dl, 2
jne 0x4f2024
movzx edx, byte [eax - 0x1d]
imul edx, edx, 0x1010101
mov dword [eax - 0x1c], edx
cmp dword [esi + 0x3cc4], 0
je 0x4f203b
push ecx
push edi
push eax
push esi
call fcn.004f1aa0
add esp, 0x10
jmp 0x4f2048
push eax
mov eax, dword [esi + ecx*4 + 0x4a8c]
call eax
add esp, 4
mov ecx, dword [esp + 0x18]
push ecx
push edi
push esi
call fcn.004f0c60
add edi, 1
add esp, 0xc
add ebx, 4
cmp edi, 0x10
jl 0x4f1ff0
jmp 0x4f2627
cmp dword [esi + 0x2138], ebx
mov dword [esp + 0x28], ebx
jne 0x4f207c
push esi
call fcn.004cd170
add esp, 4
cmp dword [esi + 0x3cc4], ebx
je 0x4f21db
cmp dword [esi + 0x2120], ebx
je 0x4f2150
lea edx, [esi + 0x19e0]
xor edi, edi
mov ebx, 0x587e48
mov dword [esp + 0x10], edx
mov eax, edi
sar eax, 1
add eax, eax
add eax, eax
add eax, eax
mov edx, eax
mov ecx, edi
and ecx, 1
add ecx, ecx
add ecx, ecx
shl edx, 5
add edx, dword [esi + 0x3020]
add ecx, ecx
shl eax, 4
add eax, ecx
add eax, dword [esi + 0x3008]
add edx, ecx
mov ecx, dword [esi + 0x4d8c]
push edx
push eax
mov eax, dword [esp + 0x18]
push eax
call ecx
mov ecx, dword [esp + 0x1c]
add esp, 0xc
xor eax, eax
lea ebx, [ebx]
mov edx, dword [ecx + eax*8]
or edx, dword [ecx + eax*8 + 4]
jne 0x4f2149
add eax, 1
cmp eax, 0x10
jl 0x4f20f0
xor edx, edx
mov ecx, dword [ebx - 8]
add dword [esp + 0x10], 0x80
mov eax, edx
imul eax, eax, 0x101
mov word [ecx + esi + 0x36f0], ax
mov ecx, dword [ebx]
mov word [esi + ecx + 0x36f0], ax
mov ecx, edi
shl edx, cl
add ebx, 0x10
add edi, 1
or dword [esi + 0x2124], edx
cmp ebx, 0x587e88
jl 0x4f20a5
jmp 0x4f2627
mov edx, 1
jmp 0x4f2103
xor ebx, ebx
lea edi, [esi + 0x1bf0]
jmp 0x4f2160
movzx edx, word [ebx*2 + 0x588068]
movzx ecx, byte [ebx + 0x588058]
add edx, dword [esi + 0x3020]
add ecx, dword [esi + 0x3008]
push edx
mov edx, dword [esi + 0x4d90]
lea eax, [edi - 0x10]
push ecx
push eax
call edx
mov eax, dword [edi - 8]
or eax, dword [edi + 8]
mov ecx, dword [edi - 4]
or ecx, dword [edi + 0xc]
or eax, dword [edi]
or ecx, dword [edi + 4]
or eax, dword [edi - 0x10]
or ecx, dword [edi - 0xc]
add esp, 0xc
or eax, ecx
je 0x4f21ae
mov eax, 1
jmp 0x4f21b0
xor eax, eax
mov ecx, dword [ebx*4 + 0x587e40]
mov byte [ecx + esi + 0x36f0], al
mov ecx, ebx
sar ecx, 2
shl eax, cl
add ebx, 1
add edi, 0x20
or dword [esi + 0x2124], eax
cmp ebx, 0x10
jl 0x4f2160
jmp 0x4f2627
cmp dword [esi + 0x2120], ebx
mov eax, dword [esi + 0x3020]
mov ecx, dword [esi + 0x3008]
push eax
push ecx
je 0x4f23c4
mov eax, dword [esi + 0x4d74]
xor edx, edx
cmp dword [esi + 0x1f10], ebx
sete dl
and dword [esp + 0x24], edx
lea edx, [esp + 0x78]
push edx
call eax
mov ecx, dword [esi + 0x1f14]
add ecx, ecx
add ecx, ecx
add dword [esi + 0xdb4], ecx
lea edx, [esi + 0x19e0]
add esp, 0xc
xor ebx, ebx
lea edi, [esp + 0x70]
mov dword [esp + 0x10], edx
cmp dword [esi + 0x1f14], 0
je 0x4f2259
mov edx, dword [esi + 0x4db4]
push 0x40
lea eax, [esi + 0xd30]
push eax
lea ecx, [esi + 0xbb0]
push ecx
push edi
call edx
add esp, 0x10
mov edx, dword [esp + 0x18]
push ebx
push 0
mov eax, esi
call fcn.004f0c10
add esp, 8
test eax, eax
je 0x4f22bf
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x4d84]
push edi
push eax
call ecx
add esp, 8
cmp dword [esp + 0x1c], 0
je 0x4f22b0
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x4dc0]
push edx
call eax
add dword [esp + 0x2c], eax
add esp, 4
cmp eax, 4
jl 0x4f22bf
mov edx, 1
mov ecx, ebx
shl edx, cl
or dword [esi + 0x2124], edx
jmp 0x4f22bf
mov eax, 1
mov ecx, ebx
shl eax, cl
or dword [esi + 0x2124], eax
add dword [esp + 0x10], 0x80
add ebx, 1
add edi, 0x80
cmp ebx, 4
jl 0x4f2234
cmp dword [esp + 0x28], 6
jge 0x4f230b
xor eax, eax
cmp dword [esp + 0x1c], eax
je 0x4f230b
mov dword [esi + 0x2124], eax
mov dword [esi + 0x36fc], eax
mov dword [esi + 0x3704], eax
mov dword [esi + 0x370c], eax
mov dword [esi + 0x3714], eax
jmp 0x4f2627
lea ecx, [esp + 0x70]
xor eax, eax
xor ebx, ebx
mov edi, 0x587e48
mov dword [esp + 0x10], ecx
lea esp, [esp]
mov edx, 1
mov ecx, ebx
shl edx, cl
test dword [esi + 0x2124], edx
je 0x4f2390
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0xa58]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esi + 0x4da8]
push ecx
push edx
call eax
mov ecx, dword [esp + 0x1c]
mov edx, ebx
sar edx, 1
shl edx, 5
mov eax, ebx
and eax, 1
push ecx
mov ecx, dword [esi + 0x3020]
add edx, eax
mov eax, dword [esi + 0x4d70]
lea edx, [ecx + edx*8]
push edx
call eax
mov ecx, dword [edi - 8]
mov eax, 0x101
mov word [ecx + esi + 0x36f0], ax
mov edx, dword [edi]
add esp, 0x14
mov word [esi + edx + 0x36f0], ax
xor eax, eax
jmp 0x4f23a5
mov ecx, dword [edi - 8]
mov word [ecx + esi + 0x36f0], ax
mov edx, dword [edi]
mov word [esi + edx + 0x36f0], ax
add dword [esp + 0x10], 0x80
add edi, 0x10
add ebx, 1
cmp edi, 0x587e88
jl 0x4f2320
jmp 0x4f2627
mov eax, dword [esi + 0x4d60]
lea edx, [esp + 0x78]
push edx
call eax
mov ecx, dword [esi + 0x1f14]
shl ecx, 4
lea edx, [esp + 0x7c]
add esp, 0xc
add dword [esi + 0xdb0], ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], 0x587e40
lea eax, [esi + 0x1be0]
lea ecx, [ecx]
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
xor ebx, ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
lea ebx, [ebx]
cmp dword [esi + 0x1f14], 0
je 0x4f2445
mov ecx, dword [esi + 0x4db4]
push 0x10
lea edx, [esi + 0xcb0]
push edx
lea eax, [esi + 0xab0]
push eax
push edi
call ecx
add esp, 0x10
cmp dword [esi + 0x1f10], 0
je 0x4f246d
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
lea eax, [ebx + edx*4]
push eax
push 0
push 2
push ecx
push 1
push edi
push esi
call fcn.004e4440
add esp, 0x1c
jmp 0x4f2492
mov eax, dword [esp + 0x18]
mov edx, dword [esi + 0xa90]
mov ecx, dword [esi + 0xa78]
shl eax, 5
add edx, eax
push edx
mov edx, dword [esi + 0x4d9c]
add ecx, eax
push ecx
push edi
call edx
add esp, 0xc
test eax, eax
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov byte [esi + edx + 0x36f0], al
je 0x4f24f3
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x4d88]
push edi
push eax
call ecx
mov edx, dword [esp + 0x20]
mov eax, dword [esi + 0xa48]
mov ecx, dword [esi + 0x4dac]
push edx
push eax
push edi
call ecx
add esp, 0x14
cmp dword [esp + 0x1c], 0
je 0x4f24eb
cmp dword [esp + 0x30], 6
jge 0x4f24eb
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x4dbc]
push edx
call eax
add esp, 4
add dword [esp + 0x30], eax
mov dword [esp + 0x34], 1
add dword [esp + 0x10], 0x20
add dword [esp + 0x14], 4
add ebx, 1
add edi, 0x20
cmp ebx, 4
jl 0x4f2420
mov eax, dword [esp + 0x30]
add dword [esp + 0x28], eax
xor edx, edx
cmp dword [esp + 0x1c], edx
je 0x4f254f
cmp eax, 4
jge 0x4f253c
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov word [esi + ecx + 0x36f0], dx
mov eax, dword [eax + 8]
mov word [eax + esi + 0x36f0], dx
jmp 0x4f2592
mov ecx, dword [esp + 0x2c]
mov eax, 1
shl eax, cl
or dword [esi + 0x2124], eax
jmp 0x4f2592
cmp dword [esp + 0x34], edx
je 0x4f2592
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
mov edx, ebx
sar edx, 1
shl edx, 5
mov eax, ebx
and eax, 1
push ecx
mov ecx, dword [esi + 0x3020]
add edx, eax
mov eax, dword [esi + 0x4d58]
lea edx, [ecx + edx*8]
push edx
call eax
mov edx, 1
mov ecx, ebx
shl edx, cl
add esp, 8
or dword [esi + 0x2124], edx
xor edx, edx
mov ecx, dword [esp + 0x14]
add dword [esp + 0x2c], 1
cmp ecx, 0x587e80
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edi
jl 0x4f2400
cmp dword [esp + 0x1c], edx
je 0x4f2627
cmp dword [esp + 0x28], 6
jge 0x4f25e0
mov dword [esi + 0x2124], edx
mov dword [esi + 0x36fc], edx
mov dword [esi + 0x3704], edx
mov dword [esi + 0x370c], edx
mov dword [esi + 0x3714], edx
jmp 0x4f2627
xor edi, edi
lea ebx, [esp + 0x70]
mov eax, 1
mov ecx, edi
shl eax, cl
test dword [esi + 0x2124], eax
je 0x4f2619
mov eax, dword [esi + 0x3020]
sar ecx, 1
shl ecx, 5
mov edx, edi
and edx, 1
add ecx, edx
mov edx, dword [esi + 0x4d58]
lea ecx, [eax + ecx*8]
push ebx
push ecx
call edx
add esp, 8
add edi, 1
add ebx, 0x80
cmp edi, 4
jl 0x4f25e6
mov eax, dword [esi + 0x2114]
test eax, eax
je 0x4f2640
cmp eax, 1
je 0x4f2640
cmp eax, 2
je 0x4f2640
cmp eax, 3
jne 0x4f267b
cmp dword [esi + 0x3cc4], 0
mov edi, dword [esi + 0x2130]
je 0x4f2658
push edi
push esi
call fcn.004f19e0
jmp 0x4f2678
mov eax, dword [esi + 0x3024]
mov ecx, dword [esi + edi*4 + 0x4a40]
push eax
call ecx
mov edx, dword [esi + 0x3028]
mov eax, dword [esi + edi*4 + 0x4a40]
push edx
call eax
add esp, 8
mov eax, dword [esi + 0x2114]
test eax, eax
je 0x4f269b
cmp eax, 1
je 0x4f269b
cmp eax, 2
je 0x4f269b
cmp eax, 3
je 0x4f269b
mov eax, 1
jmp 0x4f269d
xor eax, eax
mov ecx, dword [esi + 0x3cb4]
push ecx
push eax
push esi
call fcn.004f13d0
add esp, 0xc
cmp dword [esi + 0x78], 0
je 0x4f26d3
movzx eax, byte [esi + 0x371e]
movzx edx, byte [esi + 0x371d]
movzx ecx, byte [esi + 0x371c]
add eax, eax
or eax, edx
add eax, eax
or eax, ecx
jmp 0x4f26d7
mov eax, dword [esp + 0x3c]
mov edx, dword [esi + 0x1ef8]
mov ecx, dword [esi + 0x1fc8]
shl eax, 4
or ax, word [esi + 0x2128]
shl ax, 4
or ax, word [esi + 0x2124]
cmp dword [esp + 0x38], 0
mov word [ecx + edx*2], ax
jne 0x4f2765
cmp dword [esi + 0x2114], 4
jne 0x4f2744
cmp dword [esi + 0x2118], 0x10
jne 0x4f2744
mov edx, dword [esi + 0x2124]
or edx, dword [esi + 0x2128]
jne 0x4f2744
mov eax, dword [esi + 0x37b0]
cmp eax, dword [esi + 0x3c90]
jne 0x4f2744
cmp byte [esi + 0x372c], 0
jne 0x4f2744
mov dword [esi + 0x2114], 6
cmp dword [esi + 0x2114], 7
jne 0x4f2765
mov ecx, dword [esi + 0x2124]
or ecx, dword [esi + 0x2128]
jne 0x4f2765
mov dword [esi + 0x2114], 0x12
mov ecx, dword [esp + 0x27c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00499441
mov esp, ebp
pop ebp
ret