Function at 0x40b5d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4621b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x14]
call fcn.0043f6d0
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0
call fcn.0043f6d0
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 1
call fcn.0043f6d0
mov bl, byte [esp + 0x28]
mov esi, dword [esp + 0x30]
cmp bl, 1
mov byte [esp + 0x20], 2
jne 0x40b640
movsx cx, byte [0x473178]
mov al, byte [esp + 0x2c]
push ecx
mov byte [0x47317c], al
push 0x473179
jmp 0x40b670
cmp bl, 2
jne 0x40b679
mov dl, byte [esp + 0x2c]
mov byte [0x473184], dl
mov ax, word [esi]
movsx dx, byte [0x473180]
sar eax, 8
mov byte [0x473185], al
mov cl, byte [esi]
push edx
mov byte [0x473186], cl
push 0x473181
lea ecx, [esp + 0x1c]
call fcn.0043fb50
lea eax, [esp + 0xc]
lea edx, [esp + 0x14]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.0043f6e0
call fcn.004294e0
add esp, 8
test ax, ax
jg 0x40b6e1
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 1
call fcn.0043f810
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 0
call fcn.0043f810
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
call fcn.0043f810
or ax, 0xffff
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret 0x10
push 2
lea ecx, [esp + 0x10]
call fcn.0043f9e0
cmp al, 0xe6
je 0x40b734
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 1
call fcn.0043f810
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 0
call fcn.0043f810
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
call fcn.0043f810
xor ax, ax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret 0x10
push 1
push 0x481e1c
lea ecx, [esp + 0x18]
call fcn.0043fb50
cmp bl, 1
jne 0x40b770
push 4
lea ecx, [esp + 0x10]
call fcn.0043f9e0
xor bx, bx
push 5
mov bl, al
lea ecx, [esp + 0x10]
shl ebx, 8
call fcn.0043f9e0
movzx ax, al
add ebx, eax
mov word [esi], bx
push 0
lea ecx, [esp + 0x10]
call fcn.0043f9e0
cmp al, 6
ja 0x40b7c4
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 1
call fcn.0043f810
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 0
call fcn.0043f810
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
call fcn.0043f810
mov ax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret 0x10
xor esi, esi
lea ecx, [esp + 0xc]
push esi
call fcn.0043f9e0
and eax, 0xff
sub eax, 4
test eax, eax
jle 0x40b80b
lea ecx, [esi + 5]
push ecx
lea ecx, [esp + 0x10]
call fcn.0043f9e0
push eax
lea ecx, [esp + 0x14]
call fcn.0043f890
push 0
lea ecx, [esp + 0x10]
inc esi
call fcn.0043f9e0
and eax, 0xff
sub eax, 4
cmp esi, eax
jl 0x40b7dc
lea ecx, [esp + 0x10]
call fcn.0043fa70
dec al
lea ecx, [esp + 0x10]
push eax
push 0
call fcn.0043f9f0
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x10]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.0043f6e0
mov ecx, dword [esp + 0x34]
push ecx
push 2
mov ecx, edi
call fcn.00405b80
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0x20], 1
call fcn.0043f810
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 0
call fcn.0043f810
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
call fcn.0043f810
mov ecx, dword [esp + 0x18]
mov ax, si
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret 0x10