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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xe0
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0xa0], xmm0
movdqa xmmword [esp + 0x90], xmm0
movdqa xmmword [esp + 0x80], xmm0
movdqa xmmword [esp + 0x70], xmm0
mov dword [esp + 0xb4], 0xffffffff
mov dword [esp + 0xb0], 0xffffffff
mov dword [esp + 0x50], 0xffffffff
mov word [esp + 0x4e], 0xffff
mov eax, dword [ecx + 8]
mov dword [esp + 8], eax
mov dword [esp + 0x2c], ecx
mov ecx, dword [ecx]
movzx edi, byte [eax + 0x10]
shl edi, 6
mov eax, dword [ecx + 4]
test byte [eax + edi + 0x2d], 2
mov dword [esp + 0x54], edx
lea ebx, [eax + 8]
lea edx, [eax + edi + 0x18]
mov dword [esp + 0x1c], eax
mov esi, dword [eax + edi + 0x18]
mov dword [esp + 0x20], ebx
jne 0x4bf180
test byte [esi + 0x1c], 0x80
jne 0x4bf186
pxor xmm0, xmm0
movdqa xmmword [esp + 0xa0], xmm0
movdqa xmmword [esp + 0x70], xmm0
movdqa xmmword [esp + 0x90], xmm0
movdqa xmmword [esp + 0x80], xmm0
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0xa2], 0x10001
lea eax, [esp + 0x4e]
mov dword [esp + 0x74], eax
lea eax, [esp + 0x50]
mov dword [esp + 0x78], eax
mov byte [esp + 0xa6], 5
mov dword [esp + 0x7c], esi
movzx eax, word [esi + 0x28]
mov word [esp + 0xa0], ax
mov word [esp + 0xa7], 3
movzx eax, word [esi + 0x26]
mov word [esp + 0x50], ax
mov word [esp + 0x52], 0
lea eax, [esp + 0x70]
mov dword [esp + 4], eax
test byte [edx + 0x15], 1
jne 0x4bf18d
mov eax, dword [edx]
mov eax, dword [eax + 8]
mov dword [esp + 0x84], eax
jmp 0x4bf18d
mov eax, dword [ebx + edi + 0x3c]
jmp 0x4bf189
mov eax, dword [esi + 8]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x2c]
mov ebx, dword [eax + 4]
mov dword [esp + 0x3c], ebx
mov ebx, dword [esp + 0x1c]
add ebx, edi
add ebx, 0x2c
mov dword [esp + 0x38], ebx
xor ebx, ebx
cmp dword [eax + 0xc], 0
mov dword [esp + 0x34], ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x28], esi
jne 0x4bf1da
movzx eax, word [ecx + 0x2c]
test eax, 0x1020
jne 0x4bf1da
mov eax, dword [ecx]
mov eax, dword [eax]
test byte [eax + 0x21], 0x80
je 0x4bf1da
movzx eax, word [edx + 0x15]
test al, 3
je 0x4bf808
mov edx, dword [esp + 4]
test ebx, ebx
jne 0x4bf7fe
test edx, edx
mov esi, dword [esp + 8]
je 0x4bf7fe
mov eax, dword [esp + 0x1c]
add eax, edi
add eax, 8
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x20]
add edi, eax
add edi, 0x28
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], edi
nop word cs:[eax + eax]
mov eax, dword [edx + 0x24]
test eax, eax
mov dword [esp + 4], edx
je 0x4bf24d
mov ecx, dword [edi]
mov edx, dword [esp + 0x38]
movzx edx, byte [edx]
push eax
push dword [esp + 0x40]
call fcn.004c1340
mov edx, dword [esp + 0xc]
add esp, 8
test eax, eax
je 0x4bf340
xor ebx, ebx
test byte [edx + 0x38], 1
jne 0x4bf7b8
mov eax, dword [edx + 8]
movzx ecx, word [eax]
mov dword [esi + 0x18], 0
mov word [esi + 0x1c], 0
mov dword [esi + 0x2c], 0
mov byte [esi + 0x11], 0
mov word [esi + 0x12], 0
mov eax, dword [esp + 0x54]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
mov dword [esp + 0x14], ecx
mov word [esi + 0x16], cx
mov dword [esi + 0x20], edx
test byte [edx + 0x37], 4
jne 0x4bf2d0
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
mov ebx, dword [eax + 8]
test ebx, ebx
je 0x4bf2d0
mov eax, dword [ebx]
test eax, eax
jle 0x4bf2d0
mov cl, 1
mov dword [esp + 0x18], ecx
mov ecx, dword [edi]
mov dword [esp + 0x20], ecx
xor ecx, ecx
mov dword [esp + 0x30], ebx
jmp 0x4bf53d
mov al, 1
mov dword [esp + 0x18], eax
movzx eax, word [edx + 0x37]
mov ecx, eax
not ecx
test cl, 3
jne 0x4bf347
cmp byte [esp + 0x18], 0
mov eax, dword [esp + 0xc]
mov ecx, 0
cmovne eax, ecx
mov dword [esi + 0x28], 0x100
mov byte [esi + 0x11], al
mov edi, dword [esp + 0x14]
lea eax, [edi + 0x10]
mov word [esi + 0x14], ax
movsx eax, di
mov ecx, dword [esp + 0x3c]
mov edx, esi
push eax
call fcn.004c1420
add esp, 4
mov ecx, dword [esp + 0x2c]
mov edx, esi
call fcn.004c0af0
mov word [esi + 0x16], di
mov edi, dword [esp + 0x10]
test eax, eax
je 0x4bf784
jmp 0x4bf7fc
xor ebx, ebx
jmp 0x4bf7b8
test al, 0x20
jne 0x4bf368
mov ecx, dword [edx + 0x40]
mov esi, dword [edx + 0x44]
and esi, dword [edi + 0xc]
and ecx, dword [edi + 8]
xor eax, eax
mov edx, ecx
or edx, esi
sete al
or eax, 8
shl eax, 6
jmp 0x4bf371
xor ecx, ecx
mov eax, 0x240
xor esi, esi
mov edx, dword [esp + 8]
mov dword [edx + 0x28], eax
mov eax, dword [esp + 0xc]
cmp byte [esp + 0x18], 0
je 0x4bf402
xor eax, eax
mov edx, dword [esp + 0x28]
test byte [edx + 0x1c], 0x80
jne 0x4bf402
mov edx, dword [esp + 4]
cmp dword [edx + 0x24], 0
jne 0x4bf402
mov edx, dword [esp + 0x48]
test byte [edx + 0x15], 2
jne 0x4bf402
mov edx, ecx
or edx, esi
jne 0x4bf784
mov edx, dword [esp + 4]
test byte [edx + 0x37], 4
jne 0x4bf784
mov edx, dword [esp + 4]
movzx edx, word [edx + 0x30]
mov edi, dword [esp + 0x28]
cmp dx, word [edi + 0x28]
mov edi, dword [esp + 0x10]
jge 0x4bf784
mov edx, dword [esp + 0x34]
test byte [edx + 0x2c], 4
jne 0x4bf784
cmp byte [0x53c20f], 0
je 0x4bf784
mov edx, dword [esp + 0x34]
mov edx, dword [edx]
mov edx, dword [edx]
test byte [edx + 0x50], 0x20
jne 0x4bf784
mov ebx, dword [esp + 8]
mov byte [ebx + 0x11], al
mov eax, dword [esp + 4]
movsx eax, word [eax + 0x30]
lea eax, [eax + eax*4]
lea eax, [eax + eax*2]
mov edx, dword [esp + 0x28]
movsx edi, word [edx + 0x28]
cdq
idiv edi
or ecx, esi
mov esi, ebx
mov edi, dword [esp + 0x14]
movzx ecx, di
lea eax, [ecx + eax + 1]
mov word [ebx + 0x14], ax
je 0x4bf73e
lea ebx, [edi + 0x10]
mov ecx, dword [esp + 0x34]
cmp dword [ecx + 0x64], 0
jle 0x4bf6e3
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [esp + 0x20], eax
xor ebx, ebx
mov edi, 0xc
mov eax, dword [esp + 0x34]
jmp 0x4bf48b
add ecx, dword [esp + 0x1c]
inc ebx
add edi, 0x30
mov eax, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x34]
cmp ebx, dword [eax + 0x64]
jge 0x4bf6d9
mov esi, dword [eax + 0x70]
mov edx, dword [esi + edi - 0xc]
pxor xmm0, xmm0
movdqa xmmword [esp + 0xc0], xmm0
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd0], 0
mov eax, dword [esp + 0x20]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x68], eax
mov dword [esp + 0xc4], 0x4c22e0
lea eax, [esp + 0x68]
mov dword [esp + 0xd8], eax
test edx, edx
je 0x4bf4fa
lea ecx, [esp + 0xc0]
call fcn.00499fb0
cmp word [esp + 0xd4], 0
jne 0x4bf6d5
movzx ecx, word [esi + edi - 4]
test cx, cx
jle 0x4bf470
movzx eax, byte [esi + edi]
and al, 0x82
cmp al, 1
mov ecx, 0
sbb ecx, ecx
or ecx, 0xffec
jmp 0x4bf470
mov eax, dword [ebx]
mov esi, dword [esp + 8]
nop dword [eax + eax]
mov ecx, dword [esp + 0x1c]
inc ecx
cmp ecx, eax
jge 0x4bf71a
mov dword [esp + 0x1c], ecx
shl ecx, 4
mov edi, dword [ebx + ecx + 8]
test edi, edi
jne 0x4bf55c
jmp 0x4bf530
mov edi, dword [edi + 0x14]
add edi, 8
mov edi, dword [edi]
test edi, edi
je 0x4bf530
mov ecx, dword [edi + 4]
test ecx, 0x82000
je 0x4bf580
test ecx, 0x80000
jne 0x4bf550
add edi, 0xc
mov edi, dword [edi]
test edi, edi
jne 0x4bf55c
jmp 0x4bf530
cmp byte [edi], 0xa7
jne 0x4bf5d0
mov ecx, dword [esp + 0x20]
cmp dword [edi + 0x1c], ecx
jne 0x4bf5d0
movzx ecx, word [edi + 0x20]
test cx, cx
js 0x4bf7eb
mov edi, edx
movzx edx, word [edx + 0x32]
test edx, edx
je 0x4bf6b5
mov esi, dword [edi + 4]
xor edi, edi
nop
cmp cx, word [esi + edi*2]
je 0x4bf6bc
inc edi
cmp edx, edi
jne 0x4bf5b0
mov esi, dword [esp + 8]
mov edx, dword [esp + 4]
jmp 0x4bf530
mov ecx, dword [edx + 0x28]
mov dword [esp + 0x44], ecx
test ecx, ecx
je 0x4bf530
movzx ecx, word [edx + 0x32]
test cx, cx
je 0x4bf530
xor esi, esi
jmp 0x4bf621
mov ebx, eax
xor ecx, ecx
push dword [esp + 0x20]
push ebx
call fcn.0049a470
add esp, 8
test eax, eax
je 0x4bf6bc
mov edx, dword [esp + 4]
movzx ecx, word [edx + 0x32]
mov ebx, dword [esp + 0x30]
inc esi
movzx eax, cx
cmp esi, eax
jae 0x4bf522
mov eax, dword [edx + 4]
cmp word [eax + esi*2], 0xfffe
jne 0x4bf615
mov eax, esi
shl eax, 4
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx + eax + 8]
mov edx, edi
jmp 0x4bf649
add edx, 0xc
mov edx, dword [edx]
test edx, edx
je 0x4bf670
mov ecx, dword [edx + 4]
test ecx, 0x82000
je 0x4bf672
test ecx, 0x80000
je 0x4bf640
mov edx, dword [edx + 0x14]
add edx, 8
jmp 0x4bf643
xor edx, edx
xor ebx, ebx
test eax, eax
jne 0x4bf690
jmp 0x4bf5f2
mov eax, dword [eax + 0x14]
add eax, 8
mov eax, dword [eax]
test eax, eax
je 0x4bf5f2
mov ecx, dword [eax + 4]
test ecx, 0x82000
je 0x4bf5f0
test ecx, 0x80000
jne 0x4bf680
add eax, 0xc
mov eax, dword [eax]
test eax, eax
jne 0x4bf690
jmp 0x4bf5f2
mov edx, edi
jmp 0x4bf530
mov dword [esp + 0x18], 0
mov esi, dword [esp + 8]
mov edx, dword [esp + 4]
mov edi, dword [esp + 0x10]
jmp 0x4bf2d6
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 8]
movzx eax, word [esi + 0x14]
mov ebx, ecx
movsx ecx, ax
movsx edx, bx
cmp cx, dx
jge 0x4bf6f9
lea eax, [ecx + 0x31]
cmp eax, edx
jge 0x4bf70a
mov eax, ebx
jmp 0x4bf736
lea esi, [edx + 0x31]
cmp esi, ecx
jl 0x4bf732
lea esi, [edx + 0x1f]
cmp esi, ecx
jge 0x4bf723
inc eax
jmp 0x4bf732
lea eax, [ecx + 0x1f]
cmp eax, edx
jge 0x4bf7d7
inc ebx
mov eax, ebx
jmp 0x4bf736
mov edi, dword [esp + 0x10]
jmp 0x4bf2d6
mov eax, ecx
sub eax, edx
movzx eax, byte [eax + str._n_n_t_t_b_b_a_a_a]
add ecx, eax
mov eax, ecx
mov esi, dword [esp + 8]
mov edi, dword [esp + 0x14]
mov word [esi + 0x14], ax
movsx eax, di
mov ecx, dword [esp + 0x3c]
mov edx, esi
push eax
call fcn.004c1420
add esp, 4
mov eax, dword [esp + 0x38]
test byte [eax], 0x10
je 0x4bf76d
mov eax, dword [esp + 4]
cmp dword [eax + 0x28], 0
je 0x4bf76d
mov word [esi + 0x16], di
mov edi, dword [esp + 0x10]
jmp 0x4bf784
mov ecx, dword [esp + 0x2c]
mov edx, esi
call fcn.004c0af0
mov word [esi + 0x16], di
test eax, eax
mov edi, dword [esp + 0x10]
jne 0x4bf7fc
mov esi, dword [esp + 0x2c]
mov byte [esi + 0x10], 0
mov ecx, esi
mov edx, dword [esp + 0x40]
push 0
push dword [esp + 8]
call fcn.004c15e0
add esp, 8
mov ebx, eax
cmp byte [esi + 0x10], 1
jne 0x4bf7b0
mov eax, dword [esp + 0x28]
or byte [eax + 0x1d], 1
mov esi, dword [esp + 8]
mov edx, dword [esp + 4]
mov eax, dword [esp + 0x48]
test byte [eax + 0x15], 2
jne 0x4bf7fe
test ebx, ebx
jne 0x4bf7fe
mov edx, dword [edx + 0x14]
inc dword [esp + 0xc]
test edx, edx
jne 0x4bf220
jmp 0x4bf7fe
mov eax, edx
sub eax, ecx
movzx eax, byte [eax + str._n_n_t_t_b_b_a_a_a]
add edx, eax
mov eax, edx
jmp 0x4bf736
mov dword [esp + 0x18], 0
mov edi, dword [esp + 0x10]
jmp 0x4bf2d6
mov ebx, eax
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
test byte [esi + 0x1c], 0x80
jne 0x4bf1da
mov ecx, eax
and ecx, 8
test cx, cx
jne 0x4bf1da
and eax, 0x40
test ax, ax
jne 0x4bf1da
mov eax, dword [esp + 0x38]
test byte [eax], 0x10
jne 0x4bf1da
movzx ecx, word [esi + 0x26]
mov eax, dword [esp + 0x3c]
mov edx, dword [eax + 0xc]
mov dword [esp + 0xc], edx
mov esi, dword [eax + 0x18]
mov dword [esp + 0x30], ecx
movsx ecx, cx
call fcn.004c12b0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc]
test eax, eax
mov edx, dword [esp + 4]
jle 0x4bf1de
lea eax, [eax + eax*2]
shl eax, 4
add eax, esi
mov dword [esp + 0x44], eax
movsx eax, word [esp + 0x14]
mov dword [esp + 0x10], eax
xor ecx, ecx
cmp ax, 0x5d
setl cl
mov dword [esp + 0x18], ecx
xor ebx, ebx
cmp ax, 0xfffa
setl bl
lea ecx, [eax + 0x1f]
cmp ecx, 0x2b
setb cl
or cl, bl
mov byte [esp + 0x27], cl
mov ecx, 0x2c
sub ecx, ebx
mov dword [esp + 0x60], ecx
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
lea ecx, [eax + ebx]
mov dword [esp + 0x40], ecx
lea ecx, [eax + ebx + 0x1c]
mov dword [esp + 0x5c], ecx
lea ecx, [eax + ebx]
add ecx, 0xfffffff6
mov dword [esp + 0x64], ecx
mov ecx, 0x2b
sub ecx, dword [esp + 0x10]
mov dword [esp + 0x58], ecx
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
add eax, edi
add eax, 0x28
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 8]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
and ecx, dword [esi + 0x24]
mov dword [esp + 0xc], esi
and eax, dword [esi + 0x20]
or eax, ecx
mov ebx, 0
jne 0x4bfa6e
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x14]
mov ebx, 0
mov ecx, dword [esp + 0x30]
cmp eax, dword [ecx]
jne 0x4bfa6e
mov ecx, dword [esp + 0xc]
test byte [ecx + 0xc], 0x82
mov ebx, 0
je 0x4bfa6e
mov ecx, dword [esp + 0x38]
test byte [ecx], 0x58
je 0x4bf967
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx]
test byte [ecx + 4], 3
mov ebx, 0
je 0x4bfa6e
mov ebx, 0
cmp dword [ecx + 0x24], eax
jne 0x4bfa6e
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x18]
mov ebx, 0
test eax, eax
js 0x4bfa6e
mov ecx, dword [esp + 0x48]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 4]
lea eax, [eax + eax*2]
movsx edx, byte [ecx + eax*4 + 5]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
call fcn.004be3d0
mov edx, dword [esp + 4]
mov ebx, 0
test eax, eax
je 0x4bfa6e
mov edx, dword [esp + 8]
mov word [edx + 0x18], 1
mov dword [edx + 0x20], 0
mov dword [edx + 0x2c], 1
mov eax, dword [edx + 0x34]
mov esi, dword [esp + 0xc]
mov dword [eax], esi
mov eax, dword [esp + 0x40]
mov word [edx + 0x12], ax
mov eax, dword [esp + 0x28]
cmp byte [eax + 0x2b], 2
je 0x4bf9e9
mov eax, dword [esp + 0x28]
test byte [eax + 0x1d], 0x40
mov eax, dword [esp + 0x5c]
je 0x4bf9ed
mov eax, dword [esp + 0x64]
test ax, ax
mov ecx, 0
cmovg ecx, eax
mov word [edx + 0x12], cx
mov word [edx + 0x16], 0x2b
mov eax, dword [esp + 0x14]
cmp ax, 0x2b
jge 0x4bfa28
mov ecx, dword [esp + 0x60]
cmp byte [esp + 0x27], 0
jne 0x4bfa42
mov eax, dword [esp + 0x58]
movzx eax, byte [eax + str._n_n_t_t_b_b_a_a_a]
mov cx, 0x2b
jmp 0x4bfa3d
mov ecx, dword [esp + 0x18]
cmp ax, 0x4a
jg 0x4bfa42
mov ecx, dword [esp + 0x10]
movzx ecx, byte [ecx + str.SETUP]
movzx ecx, cx
add ecx, eax
mov word [edx + 0x14], cx
mov dword [edx + 0x28], 0x4000
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
or ecx, dword [ebp + 8]
mov dword [edx + 4], ecx
or eax, dword [esp + 0x54]
mov dword [edx], eax
mov ecx, dword [esp + 0x2c]
call fcn.004c0af0
mov ebx, eax
mov edx, dword [esp + 4]
test ebx, ebx
jne 0x4bf1de
mov esi, dword [esp + 0xc]
add esi, 0x30
cmp esi, dword [esp + 0x44]
jb 0x4bf8ef
jmp 0x4bf1de