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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20c
mov eax, dword [0x5ff004]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x58
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x74], eax
lea eax, [esp + 0x80]
push 0
push eax
call fcn.00504370
add esp, 0xc
lea eax, [esp + 0x1c]
push 4
push 0
push 0
push eax
mov eax, dword [ebx]
push ebx
call eax
add esp, 0x14
cmp eax, 4
jne 0x481377
mov eax, dword [esp + 0x1c]
movzx ecx, al
shl ecx, 8
movzx eax, ah
or ecx, eax
movzx eax, byte [esp + 0x1e]
shl ecx, 8
or ecx, eax
shl ecx, 8
cmp ecx, 0x46534200
jne 0x481377
mov edx, str.fsb_bnk_sfx_ps3_xen
mov ecx, ebx
call fcn.0040b140
test eax, eax
je 0x481377
push 4
push 0
push 0
lea eax, [esp + 0x1c]
push eax
mov eax, dword [ebx]
push ebx
call eax
add esp, 0x14
cmp eax, 4
jne 0x481377
mov eax, dword [esp + 0x10]
movzx ecx, al
shl ecx, 8
movzx eax, ah
or ecx, eax
movzx eax, byte [esp + 0x12]
shl ecx, 8
or ecx, eax
movzx eax, byte [esp + 0x13]
shl ecx, 8
or ecx, eax
mov dword [esp + 0x78], ecx
cmp ecx, 0x46534231
jne 0x481131
push 4
push 0
push 4
lea eax, [esp + 0x1c]
mov dword [esp + 0xc8], 0x4b
push eax
mov eax, dword [ebx]
push ebx
mov dword [esp + 0xc0], 0x10
mov dword [esp + 0xc4], 0x40
call eax
add esp, 0x14
cmp eax, 4
je 0x480e70
or esi, 0xffffffff
jmp 0x480e93
movzx esi, byte [esp + 0x13]
movzx eax, byte [esp + 0x12]
shl esi, 8
or esi, eax
mov eax, dword [esp + 0x10]
shl esi, 8
movzx ecx, ah
or esi, ecx
movzx eax, al
shl esi, 8
or esi, eax
push 4
push 0
push 8
lea eax, [esp + 0x1c]
mov dword [esp + 0x4c], esi
push eax
mov eax, dword [ebx]
push ebx
mov dword [esp + 0x90], esi
call eax
add esp, 0x14
cmp eax, 4
je 0x480ebb
or edx, 0xffffffff
jmp 0x480ede
movzx edx, byte [esp + 0x13]
movzx eax, byte [esp + 0x12]
shl edx, 8
or edx, eax
mov eax, dword [esp + 0x10]
shl edx, 8
movzx ecx, ah
or edx, ecx
movzx eax, al
shl edx, 8
or edx, eax
mov eax, 0x40
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x80], eax
xor eax, eax
mov dword [esp + 0x84], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x8c], eax
cmp esi, 1
jg 0x481377
push 4
push eax
push 0x30
lea eax, [esp + 0x18]
mov dword [esp + 0xcc], 0x10
push eax
mov eax, dword [ebx]
push ebx
mov dword [esp + 0xd8], 0x20
call eax
add esp, 0x14
cmp eax, 4
je 0x480f4c
or esi, 0xffffffff
jmp 0x480f6f
movzx esi, byte [esp + 0xf]
movzx eax, byte [esp + 0xe]
shl esi, 8
or esi, eax
mov eax, dword [esp + 0xc]
shl esi, 8
movzx ecx, ah
or esi, ecx
movzx eax, al
shl esi, 8
or esi, eax
push 4
push 0
push 0x34
lea eax, [esp + 0x18]
mov dword [esp + 0x30], esi
push eax
mov eax, dword [ebx]
push ebx
mov dword [esp + 0xa4], esi
call eax
add esp, 0x14
cmp eax, 4
je 0x480f97
or edi, 0xffffffff
jmp 0x480fba
movzx edi, byte [esp + 0xf]
movzx eax, byte [esp + 0xe]
shl edi, 8
or edi, eax
mov eax, dword [esp + 0xc]
shl edi, 8
movzx ecx, ah
or edi, ecx
movzx eax, al
shl edi, 8
or edi, eax
push 4
push 0
push 0x38
lea eax, [esp + 0x18]
mov dword [esp + 0xa0], edi
push eax
mov eax, dword [ebx]
push ebx
call eax
add esp, 0x14
cmp eax, 4
je 0x480fde
or edx, 0xffffffff
jmp 0x481001
movzx edx, byte [esp + 0xf]
movzx eax, byte [esp + 0xe]
shl edx, 8
or edx, eax
mov eax, dword [esp + 0xc]
shl edx, 8
movzx ecx, ah
or edx, ecx
movzx eax, al
shl edx, 8
or edx, eax
push 4
push 0
push 0x44
lea eax, [esp + 0x18]
mov dword [esp + 0x40], edx
push eax
mov eax, dword [ebx]
push ebx
mov dword [esp + 0xb8], edx
call eax
add esp, 0x14
cmp eax, 4
je 0x481029
or edx, 0xffffffff
jmp 0x48104c
movzx edx, byte [esp + 0xf]
movzx eax, byte [esp + 0xe]
shl edx, 8
or edx, eax
mov eax, dword [esp + 0xc]
shl edx, 8
movzx ecx, ah
or edx, ecx
movzx eax, al
shl edx, 8
or edx, eax
push 4
push 0
push 0x48
lea eax, [esp + 0x18]
mov dword [esp + 0x38], edx
push eax
mov eax, dword [ebx]
push ebx
mov dword [esp + 0xb4], edx
call eax
add esp, 0x14
cmp eax, 4
je 0x481074
or edx, 0xffffffff
jmp 0x481097
movzx edx, byte [esp + 0xf]
movzx eax, byte [esp + 0xe]
shl edx, 8
or edx, eax
mov eax, dword [esp + 0xc]
shl edx, 8
movzx ecx, ah
or edx, ecx
movzx eax, al
shl edx, 8
or edx, eax
push 4
push 0
push 0x4c
lea eax, [esp + 0x18]
mov dword [esp + 0x3c], edx
push eax
mov eax, dword [ebx]
push ebx
mov dword [esp + 0xac], edx
call eax
add esp, 0x14
cmp eax, 4
je 0x4810bf
or edx, 0xffffffff
jmp 0x4810e2
movzx edx, byte [esp + 0xf]
movzx eax, byte [esp + 0xe]
shl edx, 8
or edx, eax
mov eax, dword [esp + 0xc]
shl edx, 8
movzx ecx, ah
or edx, ecx
movzx eax, al
shl edx, 8
or edx, eax
test byte [esp + 0x2c], 0x40
mov eax, 0
mov dword [esp + 0x28], edx
setne al
mov dword [esp + 0x9c], edx
inc eax
mov dword [esp + 0x38], eax
mov word [esp + 0xa8], ax
cmp edx, esi
jbe 0x481118
mov eax, edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x90], eax
mov eax, 0x50
mov dword [esp + 0xc], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0x20], eax
jmp 0x4817ee
cmp ecx, 0x46534232
jne 0x481156
mov dword [esp + 0xbc], 0x4c
mov edi, 0x10
mov dword [esp + 0xb0], 0x40
jmp 0x4811a2
cmp ecx, 0x46534233
jne 0x48117b
mov dword [esp + 0xbc], 0x4d
mov edi, 0x18
mov dword [esp + 0xb0], 0x40
jmp 0x4811a2
cmp ecx, 0x46534234
jne 0x481377
mov dword [esp + 0xbc], 0x4e
mov edi, 0x30
mov dword [esp + 0xb0], 0x50
push 4
push 0
push 4
lea eax, [esp + 0x1c]
mov dword [esp + 0xb8], edi
push eax
mov eax, dword [ebx]
push ebx
call eax
add esp, 0x14
cmp eax, 4
je 0x4811c6
or esi, 0xffffffff
jmp 0x4811e9
movzx esi, byte [esp + 0x13]
movzx eax, byte [esp + 0x12]
shl esi, 8
or esi, eax
mov eax, dword [esp + 0x10]
shl esi, 8
movzx ecx, ah
or esi, ecx
movzx eax, al
shl esi, 8
or esi, eax
push 4
push 0
push 8
lea eax, [esp + 0x1c]
mov dword [esp + 0x4c], esi
push eax
mov eax, dword [ebx]
push ebx
mov dword [esp + 0x90], esi
call eax
add esp, 0x14
cmp eax, 4
je 0x481211
or edx, 0xffffffff
jmp 0x481234
movzx edx, byte [esp + 0x13]
movzx eax, byte [esp + 0x12]
shl edx, 8
or edx, eax
mov eax, dword [esp + 0x10]
shl edx, 8
movzx ecx, ah
or edx, ecx
movzx eax, al
shl edx, 8
or edx, eax
push 4
push 0
push 0xc
lea eax, [esp + 0x1c]
mov dword [esp + 0x58], edx
push eax
mov eax, dword [ebx]
push ebx
mov dword [esp + 0x94], edx
call eax
add esp, 0x14
cmp eax, 4
je 0x48125c
or edx, 0xffffffff
jmp 0x48127f
movzx edx, byte [esp + 0x13]
movzx eax, byte [esp + 0x12]
shl edx, 8
or edx, eax
mov eax, dword [esp + 0x10]
shl edx, 8
movzx ecx, ah
or edx, ecx
movzx eax, al
shl edx, 8
or edx, eax
mov dword [esp + 0x48], edx
mov dword [esp + 0x84], edx
cmp edi, 0x10
jbe 0x481397
push 4
push 0
push 0x10
lea eax, [esp + 0x1c]
push eax
mov eax, dword [ebx]
push ebx
call eax
add esp, 0x14
cmp eax, 4
je 0x4812b0
or edi, 0xffffffff
jmp 0x4812d3
movzx edi, byte [esp + 0x13]
movzx eax, byte [esp + 0x12]
shl edi, 8
or edi, eax
mov eax, dword [esp + 0x10]
shl edi, 8
movzx ecx, ah
or edi, ecx
movzx eax, al
shl edi, 8
or edi, eax
push 4
push 0
push 0x14
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], edi
push eax
mov eax, dword [ebx]
push ebx
mov dword [esp + 0x9c], edi
call eax
add esp, 0x14
cmp eax, 4
je 0x4812fb
or edx, 0xffffffff
jmp 0x48131e
movzx edx, byte [esp + 0xf]
movzx eax, byte [esp + 0xe]
shl edx, 8
or edx, eax
mov eax, dword [esp + 0xc]
shl edx, 8
movzx ecx, ah
or edx, ecx
movzx eax, al
shl edx, 8
or edx, eax
mov dword [esp + 0x44], edx
mov dword [esp + 0x8c], edx
cmp edi, 0x30001
jne 0x481363
mov dword [esp + 0xb0], 0x50
mov edi, dword [esp + 0xac]
mov eax, dword [esp + 0x4c]
cmp eax, dword [esp + 0xb0]
jb 0x481377
mov ecx, dword [esp + 0x70]
test ecx, ecx
jne 0x4813b3
mov ecx, 1
mov dword [esp + 0x70], ecx
jmp 0x4813b5
test edi, edi
je 0x48133c
cmp edi, 0x30000
je 0x48133c
cmp edi, 0x40000
je 0x48133c
xor esi, esi
mov ecx, esi
call fcn.00405c10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00502eb4
mov esp, ebp
pop ebp
ret
xor eax, eax
xor edx, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x44], edx
mov dword [esp + 0x8c], edx
jmp 0x481343
js 0x481377
cmp ecx, esi
jg 0x481377
cmp esi, 1
jl 0x481377
add eax, edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], eax
xor ecx, ecx
mov eax, edx
mov dword [esp + 0xd8], ecx
and eax, 2
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0xc], eax
mov ax, word [esp + 0xa8]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x2c], eax
jmp 0x481414
mov edi, dword [esp + 0x18]
cmp dword [esp + 0x74], 0
je 0x4814e7
test ecx, ecx
jle 0x4814e7
push 4
mov eax, edi
mov dword [esp + 0x20], 8
cdq
push edx
push eax
lea eax, [esp + 0x5c]
push eax
mov eax, dword [ebx]
push ebx
call eax
add esp, 0x14
cmp eax, 4
je 0x48144d
or esi, 0xffffffff
jmp 0x481470
movzx esi, byte [esp + 0x53]
movzx eax, byte [esp + 0x52]
shl esi, 8
or esi, eax
mov eax, dword [esp + 0x50]
shl esi, 8
movzx ecx, ah
or esi, ecx
movzx eax, al
shl esi, 8
or esi, eax
push 4
lea eax, [edi + 4]
mov dword [esp + 0x28], esi
cdq
push edx
push eax
lea eax, [esp + 0x60]
mov dword [esp + 0x9c], esi
push eax
mov eax, dword [ebx]
push ebx
call eax
add esp, 0x14
cmp eax, 4
je 0x48149a
or edi, 0xffffffff
jmp 0x4814bd
movzx edi, byte [esp + 0x57]
movzx eax, byte [esp + 0x56]
shl edi, 8
or edi, eax
mov eax, dword [esp + 0x54]
shl edi, 8
movzx ecx, ah
or edi, ecx
movzx eax, al
shl edi, 8
or edi, eax
xor eax, eax
mov dword [esp + 0x94], edi
xor edx, edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], edx
mov dword [esp + 0x9c], edx
jmp 0x48177f
push 2
mov eax, edi
cdq
push edx
push eax
lea eax, [esp + 0x20]
push eax
mov eax, dword [ebx]
push ebx
call eax
add esp, 0x14
cmp eax, 2
je 0x481505
or eax, 0xffffffff
jmp 0x48151a
mov ax, word [esp + 0x14]
movzx ecx, ah
movzx eax, al
shl cx, 8
or cx, ax
movzx eax, cx
movzx eax, ax
mov dword [esp + 0x1c], eax
lea eax, [edi + 2]
mov dword [esp + 0xc0], eax
lea eax, [edi + 0x20]
cdq
push 4
push edx
push eax
lea eax, [esp + 0x64]
mov dword [esp + 0xd0], 0x1e
push eax
mov eax, dword [ebx]
push ebx
call eax
add esp, 0x14
cmp eax, 4
je 0x481555
or esi, 0xffffffff
jmp 0x481578
movzx esi, byte [esp + 0x5b]
movzx eax, byte [esp + 0x5a]
shl esi, 8
or esi, eax
mov eax, dword [esp + 0x58]
shl esi, 8
movzx ecx, ah
or esi, ecx
movzx eax, al
shl esi, 8
or esi, eax
push 4
lea eax, [edi + 0x24]
mov dword [esp + 0x28], esi
cdq
push edx
push eax
lea eax, [esp + 0x68]
mov dword [esp + 0x9c], esi
push eax
mov eax, dword [ebx]
push ebx
call eax
add esp, 0x14
cmp eax, 4
je 0x4815a2
or edi, 0xffffffff
jmp 0x4815c5
movzx edi, byte [esp + 0x5f]
movzx eax, byte [esp + 0x5e]
shl edi, 8
or edi, eax
mov eax, dword [esp + 0x5c]
shl edi, 8
movzx ecx, ah
or edi, ecx
movzx eax, al
shl edi, 8
or edi, eax
mov esi, dword [esp + 0x18]
push 4
mov dword [esp + 0x98], edi
lea eax, [esi + 0x28]
cdq
push edx
push eax
lea eax, [esp + 0x6c]
push eax
mov eax, dword [ebx]
push ebx
call eax
add esp, 0x14
cmp eax, 4
je 0x4815ef
or edx, 0xffffffff
jmp 0x481612
movzx edx, byte [esp + 0x63]
movzx eax, byte [esp + 0x62]
shl edx, 8
or edx, eax
mov eax, dword [esp + 0x60]
shl edx, 8
movzx ecx, ah
or edx, ecx
movzx eax, al
shl edx, 8
or edx, eax
push 4
mov dword [esp + 0x34], edx
lea eax, [esi + 0x2c]
mov dword [esp + 0x9c], edx
cdq
push edx
push eax
lea eax, [esp + 0x70]
push eax
mov eax, dword [ebx]
push ebx
call eax
add esp, 0x14
cmp eax, 4
je 0x48163c
or esi, 0xffffffff
jmp 0x48165f
movzx esi, byte [esp + 0x67]
movzx eax, byte [esp + 0x66]
shl esi, 8
or esi, eax
mov eax, dword [esp + 0x64]
shl esi, 8
movzx ecx, ah
or esi, ecx
movzx eax, al
shl esi, 8
or esi, eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x9c], esi
mov esi, dword [esp + 0x18]
push 4
lea eax, [esi + 0x30]
cdq
push edx
push eax
lea eax, [esp + 0x74]
push eax
mov eax, dword [ebx]
push ebx
call eax
add esp, 0x14
cmp eax, 4
je 0x48168d
or edx, 0xffffffff
jmp 0x4816b0
movzx edx, byte [esp + 0x6b]
movzx eax, byte [esp + 0x6a]
shl edx, 8
or edx, eax
mov eax, dword [esp + 0x68]
shl edx, 8
movzx ecx, ah
or edx, ecx
movzx eax, al
shl edx, 8
or edx, eax
push 4
mov dword [esp + 0x30], edx
lea eax, [esi + 0x34]
mov dword [esp + 0xa4], edx
cdq
push edx
push eax
lea eax, [esp + 0x78]
push eax
mov eax, dword [ebx]
push ebx
call eax
add esp, 0x14
cmp eax, 4
je 0x4816da
or esi, 0xffffffff
jmp 0x4816fd
movzx esi, byte [esp + 0x6f]
movzx eax, byte [esp + 0x6e]
shl esi, 8
or esi, eax
mov eax, dword [esp + 0x6c]
shl esi, 8
movzx ecx, ah
or esi, ecx
movzx eax, al
shl esi, 8
or esi, eax
mov eax, dword [esp + 0x18]
push 2
mov dword [esp + 0x38], esi
mov dword [esp + 0xa8], esi
lea eax, [eax + 0x3e]
cdq
push edx
push eax
lea eax, [esp + 0x48]
push eax
mov eax, dword [ebx]
push ebx
call eax
add esp, 0x14
cmp eax, 2
je 0x48172b
or eax, 0xffffffff
jmp 0x481740
mov ax, word [esp + 0x3c]
movzx ecx, ah
movzx eax, al
shl cx, 8
or cx, ax
movzx eax, cx
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x38], eax
mov word [esp + 0xa8], ax
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x1c], ecx
jbe 0x48177f
add ecx, eax
cmp dword [esp + 0xb8], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0xb4], ecx
jne 0x48177f
mov dword [esp + 0xb8], ecx
mov ecx, dword [esp + 0xd8]
lea esi, [ecx + 1]
cmp esi, dword [esp + 0x70]
je 0x4817de
mov ecx, dword [esp + 0x20]
add eax, dword [esp + 0x1c]
add ecx, edi
test byte [esp + 0x8c], 0x40
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ecx
je 0x4817c7
and ecx, 0x8000001f
jns 0x4817ba
dec ecx
or ecx, 0xffffffe0
add ecx, 1
je 0x4817c7
mov eax, 0x20
sub eax, ecx
add dword [esp + 0x20], eax
mov ecx, esi
mov dword [esp + 0xd8], esi
mov esi, dword [esp + 0x40]
cmp ecx, esi
jl 0x481410
jmp 0x4817e2
mov esi, dword [esp + 0x40]
cmp ecx, esi
jg 0x481377
mov eax, dword [esp + 0x20]
mov dword [esp + 0xcc], eax
mov eax, dword [esp + 0x2c]
test eax, 0x200
je 0x481804
xor eax, eax
jmp 0x48185f
test eax, 0x400000
je 0x481812
mov eax, 1
jmp 0x48185f
test eax, 0x800000
je 0x481820
mov eax, 2
jmp 0x48185f
test eax, 0x1000000
je 0x48182e
mov eax, 3
jmp 0x48185f
test eax, 0x2000000
je 0x48183c
mov eax, 4
jmp 0x48185f
test eax, 0x8000000
je 0x48184a
mov eax, 5
jmp 0x48185f
mov al, byte [esp + 0xa0]
not al
movzx eax, al
and eax, 8
or eax, 0x30
shr eax, 3
mov dword [esp + 0x18], eax
mov dword [esp + 0xd0], eax
test edx, edx
je 0x48187a
inc edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x9c], edx
mov eax, dword [ebx + 4]
push ebx
call eax
add esp, 4
mov esi, eax
mov eax, dword [ebx + 4]
push ebx
call eax
mov edx, dword [esp + 0xb0]
add esp, 4
push eax
mov eax, dword [esp + 0x4c]
add eax, dword [esp + 0x50]
add edx, eax
xor eax, eax
push edx
cmp edx, esi
push str.FSB_wrong_head_data_size_found__expected_0x_x_vs_0x_x__n
setne al
push eax
call fcn.0040ba00
mov ecx, dword [esp + 0x3c]
add esp, 0x10
mov eax, dword [esp + 0x18]
mov edx, ecx
mov esi, dword [esp + 0x24]
and edx, 2
cmp eax, 5
jne 0x4818ea
mov eax, dword [esp + 0x30]
add eax, 0xfffffe00
jne 0x481920
lea eax, [esi - 0x200]
cmp dword [esp + 0x28], eax
jb 0x481920
mov eax, 1
jmp 0x481922
test eax, eax
jne 0x48190c
mov eax, dword [esp + 0x30]
add eax, 0xfffffb80
jne 0x481920
lea eax, [esi - 0x480]
cmp dword [esp + 0x28], eax
jb 0x481920
mov eax, 1
jmp 0x481922
cmp dword [esp + 0x30], 0
jne 0x481920
cmp dword [esp + 0x28], esi
jne 0x481920
mov eax, 1
jmp 0x481922
xor eax, eax
not ecx
and ecx, 1
mov dword [esp + 0xc8], ecx
je 0x481951
test edx, edx
jne 0x481951
test eax, eax
je 0x481951
mov eax, dword [esp + 0x34]
lea eax, [eax + eax*4]
shl eax, 2
cmp esi, eax
sbb eax, eax
not eax
and ecx, eax
mov dword [esp + 0xc8], ecx
mov eax, dword [esp + 0x38]
mov edx, ecx
movzx eax, ax
mov ecx, eax
call fcn.00405ab0
mov edx, eax
mov dword [esp + 0x14], edx
test edx, edx
je case.default.0x4819d3
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov dword [edx + 0x1c], eax
mov eax, dword [esp + 0x28]
mov dword [edx + 0x20], eax
mov eax, dword [esp + 0x40]
mov dword [edx + 0x38], eax
mov eax, dword [esp + 0xbc]
mov dword [edx + 0x14], eax
mov eax, dword [esp + 0xc0]
mov dword [edx + 4], ecx
mov dword [edx], esi
mov dword [edx + 0x40], edi
test eax, eax
je 0x4819c6
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc4]
push ebx
push eax
inc edx
lea ecx, [ecx + 0x44]
call fcn.00404590
mov edx, dword [esp + 0x1c]
add esp, 8
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x18]
cmp eax, 7
ja case.default.0x4819d3
jmp dword [eax*4 + 0x481dfc]
push 0x34
lea eax, [esp + 0xe0]
push 0
push eax
call fcn.00504370
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [eax + 8]
cmp ecx, 2
jle 0x481a07
mov dword [esp + 0xe0], 0x10
jmp 0x481a2f
test byte [esp + 0x8c], 0x40
je 0x481a1e
mov dword [esp + 0xe0], 4
jmp 0x481a2f
mov edx, dword [esp + 0x44]
shr edx, 4
and edx, 2
mov dword [esp + 0xe0], edx
lea edx, [esp + 0xdc]
add eax, 0xc
push edx
mov edx, dword [esp + 0x24]
push 3
push ecx
push eax
mov ecx, ebx
call fcn.004e3d80
mov esi, dword [esp + 0x24]
add esp, 0x10
mov dword [esi + 0x1a4], eax
test eax, eax
je 0x481379
mov dword [esi + 0x10], 0
jmp 0x481dbf
cmp dword [edx + 8], 2
mov dword [edx + 0xc], 0x38
mov dword [edx + 0x10], 0
jg 0x481a8c
test dword [esp + 0x2c], 0x4000000
je 0x481dbb
mov dword [edx + 0xc], 0x40
jmp 0x481dbb
test byte [esp + 0x8c], 0x10
mov dword [edx + 0xc], 0x20
mov dword [edx + 0x10], 1
je 0x481ac9
mov eax, edi
xor edx, edx
mov edi, dword [esp + 0x38]
movzx ecx, di
div ecx
mov edx, dword [esp + 0x14]
mov dword [edx + 0x24], eax
jmp 0x481dbb
mov eax, 0x10
mov dword [edx + 0x24], eax
jmp 0x481dbb
cmp dword [esp + 0x10], 0x40000
je 0x481b3c
mov eax, dword [esp + 0x38]
push 0
push ecx
movzx ecx, ax
push ecx
push edi
lea ecx, [esp + 0x120]
call fcn.004e0880
push 0
push 0
push edi
push 0
push dword [esp + 0x40]
cdq
mov ecx, ebx
push edx
push eax
lea edx, [esp + 0x13c]
call fcn.00409810
mov esi, eax
add esp, 0x2c
mov dword [esp + 0x74], esi
test esi, esi
jne 0x481b23
jmp 0x481b90
xor edx, edx
mov dword [esi + 0xe4], 1
mov ecx, esi
call fcn.0040a600
mov eax, dword [esp + 0x74]
jmp 0x481b90
mov ecx, edi
mov eax, edi
and ecx, 0x7fff
neg ecx
sbb ecx, ecx
shr eax, 0xf
neg ecx
add ecx, eax
mov eax, dword [esp + 0x38]
push ecx
push 0x8000
push dword [esp + 0x3c]
movzx ecx, ax
push ecx
push esi
push edi
lea ecx, [esp + 0x128]
call fcn.004e0b20
push 0
push 0
push edi
push 0
push dword [esp + 0x48]
cdq
mov ecx, ebx
push edx
push eax
lea edx, [esp + 0x144]
call fcn.00409810
add esp, 0x34
mov esi, dword [esp + 0x14]
mov dword [esi + 0x1a4], eax
test eax, eax
je 0x481379
push dword [esi + 8]
xor edx, edx
mov dword [esi + 0xc], 0x83
mov ecx, ebx
mov dword [esi + 0x10], 0
call fcn.004e5a80
mov ecx, dword [esp + 0x18]
add esp, 4
mov edx, ebx
push 0
push 0
push eax
push edi
push dword [esp + 0x30]
call fcn.004e5d80
add esp, 0x14
jmp 0x481dbb
mov esi, dword [esp + 0x44]
and esi, 0x10
je 0x481bf6
mov eax, edi
xor edx, edx
mov edi, dword [esp + 0x38]
movzx ecx, di
div ecx
mov edx, eax
jmp 0x481bfb
mov edx, 2
mov ecx, dword [esp + 0x14]
xor eax, eax
test esi, esi
push 1
setne al
neg esi
push 0x2e
sbb esi, esi
add esi, 0x18
mov dword [ecx + 0xc], esi
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x24], edx
mov edx, ebx
mov eax, dword [esp + 0x14]
push eax
call fcn.004dcbd0
add esp, 0xc
jmp 0x481dbb
mov edx, dword [esp + 0xb8]
mov eax, dword [esp + 0xc]
test edx, edx
jne 0x481cec
test eax, eax
jne 0x481cec
mov eax, dword [esp + 0x20]
add eax, 8
cdq
push 2
push edx
push eax
lea eax, [esp + 0x48]
push eax
mov eax, dword [ebx]
push ebx
call eax
add esp, 0x14
cmp eax, 2
jne 0x481c9e
mov ax, word [esp + 0x3c]
movzx ecx, al
shl cx, 8
movzx eax, ah
or cx, ax
movzx ecx, cx
mov eax, ecx
and ecx, 0xf000
cmp ecx, 0x6000
je 0x481d49
mov ecx, 0xfffe
cmp ax, cx
je 0x481d49
xor edx, edx
cmp word [esp + 0x38], 2
jbe 0x481d53
push edx
lea edx, [esp + 0x7c]
mov ecx, ebx
call fcn.00481e20
mov esi, dword [esp + 0x18]
add esp, 4
mov dword [esi + 0x1a8], eax
test eax, eax
je 0x481379
mov ecx, dword [esp + 0xcc]
mov eax, 0x29
mov dword [esp + 0x20], ecx
mov dword [esi + 0xc], 0x81
mov dword [esi + 0x10], eax
jmp 0x481dbf
mov ecx, dword [ebx]
push 4
test edx, edx
je 0x481cf6
mov eax, edx
cdq
push edx
push eax
lea eax, [esp + 0x28]
push eax
push ebx
call ecx
add esp, 0x14
cmp eax, 4
je 0x481d0e
or edx, 0xffffffff
jmp 0x481d31
movzx edx, byte [esp + 0x1f]
movzx eax, byte [esp + 0x1e]
shl edx, 8
or edx, eax
mov eax, dword [esp + 0x1c]
shl edx, 8
movzx ecx, ah
or edx, ecx
movzx eax, al
shl edx, 8
or edx, eax
cmp edx, 0x80000009
je 0x481c9e
cmp edx, 0x80000010
jne case.default.0x4819d3
mov edx, 1
jmp 0x481ca0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 8]
call fcn.004e8d00
mov esi, dword [esp + 0x14]
mov dword [esi + 0x1a4], eax
test eax, eax
je 0x481379
xor eax, eax
mov dword [esi + 0xc], 0x81
mov dword [esi + 0x10], eax
jmp 0x481dbf
mov eax, dword [esp + 0x2c]
and eax, 0x80
mov dword [edx + 0x24], 1
or eax, 0x100
shr eax, 6
jmp 0x481db1
test byte [esp + 0x8c], 8
mov eax, 0
mov dword [edx + 0x24], 2
setne al
inc eax
mov dword [edx + 0x10], 1
mov dword [edx + 0xc], eax
mov esi, dword [esp + 0x14]
push 0
push dword [esp + 0x24]
mov edx, ebx
mov ecx, esi
call fcn.004064d0
add esp, 8
test eax, eax
je 0x481379
mov ecx, dword [esp + 0x214]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00502eb4
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x14]
jmp 0x481379