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

Disassembly:
sub esp, 0x9c
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [eax]
mov ebp, dword [ecx + 0xc]
mov dword [esp + 0xc], ecx
mov ecx, dword [eax + 0x1c]
shl esi, 6
lea esi, [esi + eax + 0x20]
mov eax, dword [eax + 8]
mov dword [esp + 0x30], ecx
movzx ecx, byte [esi + 0x28]
push edi
lea edi, [ecx*8]
sub edi, ecx
lea eax, [eax + edi*8 + 8]
mov edi, dword [eax + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [esi]
mov ebx, eax
shr ebx, 0x19
xor edx, edx
and ebx, 1
mov dword [esp + 0x58], edx
mov dword [esp + 0x30], esi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x48], ebx
test eax, 0x800000
je 0x4b2253
test byte [esp + 0xb0], 0x40
mov dword [esp + 0x28], 1
je 0x4b2257
mov dword [esp + 0x28], edx
mov eax, ebp
call fcn.00489c30
mov dword [esp + 0x2c], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x18], eax
mov eax, ebp
call fcn.00489c30
cmp byte [esi + 0x28], 0
mov dword [esp + 0x5c], eax
mov dword [esi + 0x20], eax
jbe 0x4b22a2
mov ecx, dword [esp + 0x18]
test byte [ecx + 0x15], 8
je 0x4b22a2
mov eax, dword [esp + 0x10]
inc dword [eax + 0x48]
mov eax, dword [eax + 0x48]
push eax
mov dword [esi + 0xc], eax
push 0
push 0x30
mov eax, ebp
call fcn.00489bd0
add esp, 0xc
mov eax, dword [esi]
test eax, 0x8000000
je 0x4b255d
mov eax, dword [esi + 8]
mov edi, dword [eax]
mov edx, dword [eax + 0x10]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x38], eax
mov eax, dword [eax + 4]
mov dword [esp + 0x18], eax
lea eax, [edi + 2]
push eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x44], edx
mov dword [esp + 0x28], eax
call fcn.00483150
add esp, 4
cmp edi, 1
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
jl 0x4b23c9
jmp 0x4b22f9
mov edi, dword [esp + 0x14]
xor ebx, ebx
test edi, edi
jle 0x4b23b0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x1c]
nop
cmp dword [edx + ebx*8], eax
je 0x4b231f
inc ebx
cmp ebx, ecx
jl 0x4b2310
jmp 0x4b23b0
mov ecx, dword [esp + 0x20]
lea edi, [eax + ecx + 1]
mov eax, dword [esp + 0x18]
lea edx, [ebx + ebx*2]
mov eax, dword [eax + edx*4 + 8]
mov edx, dword [esp + 0x34]
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0x1c]
mov ecx, dword [eax + ecx*8]
mov eax, dword [ecx + 0xc]
mov edx, dword [esp + 0x10]
push edi
push eax
push edx
mov dword [esp + 0x60], edi
call fcn.004b0320
add esp, 0xc
mov dword [esp + 0x44], eax
cmp eax, edi
je 0x4b23b0
mov eax, dword [esp + 0x10]
mov edi, dword [eax + 0xc]
test edi, edi
je 0x4b23b0
mov eax, dword [edi + 0xc]
cmp dword [edi + 0x10], eax
mov dword [esp + 0x28], eax
jg 0x4b237d
call fcn.00489a50
test eax, eax
jne 0x4b23b0
mov edx, dword [edi + 0x14]
inc dword [edi + 0xc]
mov eax, dword [esp + 0x28]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x54]
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax], 9
mov byte [eax + 3], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov byte [edi + 0x6e], cl
cmp ebx, dword [esp + 0x14]
je 0x4b23c9
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
jle 0x4b22f5
mov eax, dword [esp + 0x38]
mov ebx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], ebx
mov ecx, dword [eax + 0x14]
mov dword [esp + 0x28], ecx
jg 0x4b23e7
mov edi, ebp
call fcn.00489a50
test eax, eax
jne 0x4b2416
mov eax, dword [ebp + 0x14]
inc dword [ebp + 0xc]
mov ecx, dword [esp + 0x28]
lea edx, [ebx + ebx*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x20]
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax], 0x30
mov byte [eax + 3], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov byte [ebp + 0x6e], cl
mov ebx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], ebx
jg 0x4b2429
mov edi, ebp
call fcn.00489a50
test eax, eax
jne 0x4b245a
mov ecx, dword [ebp + 0x14]
inc dword [ebp + 0xc]
mov edx, dword [esp + 0x1c]
lea eax, [ebx + ebx*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x20]
inc ecx
dec edx
mov dword [eax + 8], ecx
xor ecx, ecx
mov byte [eax], 0x30
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov byte [ebp + 0x6e], cl
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx + 0x1c]
mov ebx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x18]
neg eax
sbb eax, eax
and eax, 0xfffffff7
add eax, 0xfffffffe
cmp dword [ebp + 0x10], ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0x28], edx
jg 0x4b2490
mov edi, ebp
call fcn.00489a50
test eax, eax
je 0x4b2490
mov ebx, 1
jmp 0x4b24c7
mov ecx, dword [ebp + 0x14]
inc dword [ebp + 0xc]
mov edx, dword [esp + 0x3c]
lea eax, [ebx + ebx*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x2c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x20]
mov byte [eax], 0x67
mov byte [eax + 3], 0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
mov byte [ebp + 0x6e], 0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x44]
push eax
push ebp
mov eax, ebx
call fcn.00489fe0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x40]
add esp, 8
mov dword [ecx + 0x1c], 0
test eax, eax
jle 0x4b252a
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x40]
add edi, 8
add ebx, 4
mov dword [esp + 0x18], eax
cmp byte [ebx], 0
je 0x4b251d
mov eax, dword [edi]
mov esi, dword [esp + 0x30]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 0x1c]
lea eax, [ecx + edx*8]
call fcn.00484ec0
add ebx, 8
add edi, 0xc
sub dword [esp + 0x18], 1
jne 0x4b2500
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x24]
mov byte [esi + 0x29], 1
mov dword [esi + 0x2c], edx
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x30], eax
mov eax, dword [esp + 0x10]
cmp ecx, dword [eax + 0x38]
mov ebx, eax
jle 0x4b2e71
mov dword [eax + 0x38], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 0x3c], ecx
jmp 0x4b2e71
test eax, 0x1000
je 0x4b2605
mov ecx, dword [esp + 0x10]
mov al, byte [ecx + 0x15]
test al, al
jne 0x4b257f
inc dword [ecx + 0x48]
mov edx, dword [ecx + 0x48]
mov dword [esp + 0x58], edx
jmp 0x4b258f
dec al
mov byte [ecx + 0x15], al
movzx eax, al
mov ecx, dword [ecx + eax*4 + 0x18]
mov dword [esp + 0x58], ecx
mov edx, dword [esp + 0xb8]
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0x34]
push 0
push 3
push edx
push eax
push edi
push ecx
or ebx, 0xffffffff
call fcn.004a6460
mov edx, dword [esp + 0x70]
push edx
push eax
mov eax, dword [esp + 0x30]
push eax
mov ebx, esi
call fcn.004b1f10
mov ebx, eax
mov eax, dword [esi + 0x1c]
push eax
mov dword [esp + 0x48], eax
push ebx
push 0x26
mov eax, ebp
call fcn.00489bd0
mov ecx, dword [esp + 0x50]
push ebx
push ecx
push edi
push 0x2e
mov eax, ebp
call fcn.00489ad0
mov ecx, dword [esp + 0x50]
add esp, 0x40
push ebx
push 0xffffffffffffffff
push edi
call fcn.00482d40
add esp, 0xc
mov byte [esi + 0x29], 0x18
mov ebx, ecx
jmp 0x4b2e71
test eax, 0x2000
je 0x4b281c
mov edx, dword [esp + 0xb8]
mov esi, dword [esp + 0xb4]
mov eax, dword [esp + 0x34]
push 0
push 0x24
push edx
push esi
push edi
push eax
or ebx, 0xffffffff
mov dword [esp + 0x38], 0x18
mov dword [esp + 0x30], 0
call fcn.004a6460
mov ecx, dword [esp + 0xd0]
mov edx, dword [esp + 0x4c]
push 0
push 0x18
push ecx
push esi
push edi
push edx
or ebx, ebx
mov dword [esp + 0x54], eax
call fcn.004a6460
mov ecx, dword [esp + 0x78]
add esp, 0x30
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x4b267b
mov edx, dword [esp + 0x24]
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], edx
cmp dword [esp + 0x24], 0
je 0x4b26f6
mov eax, dword [esp + 0x24]
mov edi, dword [eax]
mov ebx, dword [esp + 0x10]
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [edi + 0xc]
mov esi, ebx
mov byte [esp + 0x20], 0x7b
mov byte [esp + 0x21], 0x37
mov byte [esp + 0x22], 0x46
mov byte [esp + 0x23], 0x6d
call fcn.0048b010
movzx ecx, byte [edi]
mov edx, dword [esp + 0x30]
mov esi, eax
mov eax, dword [esp + 0x40]
push esi
push edx
movzx edx, byte [esp + ecx - 0x23]
push eax
push edx
mov eax, ebp
call fcn.00489ad0
push ebx
mov eax, 1
call fcn.00482f70
mov esi, dword [esp + 0x40]
add esp, 0x18
mov edx, ebx
call fcn.00483120
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x30]
call fcn.00484ec0
mov eax, esi
jmp 0x4b2719
mov eax, dword [esp + 0x2c]
neg ecx
sbb ecx, ecx
push eax
and ecx, 0xffffffbc
add ecx, 0x7a
push edi
push ecx
mov eax, ebp
call fcn.00489bd0
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x3c]
add esp, 0xc
cmp dword [esp + 0x14], 0
je 0x4b277f
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
inc dword [ebx + 0x48]
mov esi, dword [ebx + 0x48]
mov dword [esp + 0x28], eax
mov eax, dword [eax + 0xc]
mov edi, ebx
mov dword [esp + 0x18], esi
call fcn.0048b090
mov edx, dword [esp + 0x28]
mov al, byte [edx]
cmp al, 0x4d
je 0x4b275f
cmp al, 0x4b
je 0x4b275f
xor eax, eax
cmp dword [esp + 0x48], eax
setne al
lea eax, [eax + eax + 0x4b]
mov dword [esp + 0x20], eax
jmp 0x4b2770
xor ecx, ecx
cmp dword [esp + 0x48], ecx
sete cl
lea ecx, [ecx + ecx + 0x4c]
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x30]
call fcn.00484ec0
mov eax, esi
mov edx, dword [esp + 0x48]
mov esi, dword [ebp + 0xc]
neg edx
sbb dl, dl
and dl, 0xc7
add dl, 0x6a
cmp dword [esp + 0x24], 0
mov byte [eax + 0x29], dl
mov edx, dword [esp + 0x3c]
mov dword [eax + 0x2c], edx
mov dword [eax + 0x30], esi
jne 0x4b27b2
cmp dword [esp + 0x14], 0
jne 0x4b27b2
mov ecx, 1
jmp 0x4b27b4
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov byte [eax + 0x2a], cl
cmp edi, 0x18
je 0x4b2e71
mov eax, ebx
call fcn.00483100
mov esi, eax
push esi
push edx
push 0x28
mov eax, ebp
mov dword [esp + 0x64], esi
call fcn.00489bd0
mov eax, dword [esp + 0x48]
push esi
push 0xffffffffffffffff
push eax
mov ecx, ebx
call fcn.00482d40
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x30]
push esi
push ecx
push edx
push edi
mov eax, ebp
call fcn.00489ad0
mov eax, dword [ebp + 0x14]
add esp, 0x28
test eax, eax
je 0x4b2e71
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx + ecx*4]
mov byte [eax + ecx*4 - 0x11], 0x6b
jmp 0x4b2e71
test eax, 0x30000
je 0x4b2c62
mov edx, dword [esi + 8]
mov ecx, dword [esi + 4]
mov dword [esp + 0x50], edx
mov edx, dword [esi + 0x14]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x50]
mov edx, dword [edx + 8]
mov edx, dword [edx + ecx*4]
xor eax, eax
test byte [esp + 0xb0], 1
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], 0x7a
mov dword [esp + 0x78], 0x36
mov dword [esp + 0x7c], 0x7b
mov dword [esp + 0x80], 0x46
mov dword [esp + 0x84], 0x6d
mov dword [esp + 0x88], 0x37
mov dword [esp + 0x60], 0x18
mov dword [esp + 0x64], 0x3f
mov dword [esp + 0x68], 0x29
mov dword [esp + 0x24], ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x18], edx
je 0x4b28d5
test dword [esi], 0x1000000
je 0x4b28d5
mov edx, dword [esp + 0x50]
cmp dword [edx + 4], ecx
jle 0x4b28d5
mov eax, 1
mov dword [esp + 0x54], eax
test dword [esi], 0x100000
je 0x4b2913
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0xb8]
mov edx, dword [esp + 0xb4]
mov ebx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x38]
push 0x18
push ecx
push edx
push edi
push eax
call fcn.004a6460
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x64], eax
add esp, 0x18
mov eax, 1
test dword [esi], 0x200000
je 0x4b2951
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0xb8]
mov eax, dword [esp + 0xb4]
mov ebx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x38]
push 0x24
push edx
push eax
push edi
push ecx
call fcn.004a6460
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x2c], eax
add esp, 0x18
mov eax, 1
mov edx, dword [esp + 0xb8]
mov ecx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0xb8]
push edx
mov edx, dword [esp + 0x18]
push eax
push ecx
push esi
push edx
call fcn.004b2070
mov ecx, dword [esi + 0x1c]
mov edx, dword [esp + 0x68]
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x38], ecx
mov ecx, dword [edx + 0x28]
xor edx, edx
add esp, 0x18
cmp byte [edi + ecx], dl
mov dword [esp + 0x38], eax
sete dl
cmp ebx, edx
jne 0x4b29a9
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x14], ecx
jmp 0x4b29b1
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x4c]
xor ebx, ebx
cmp ecx, ebx
je 0x4b29c1
test byte [ecx + 0x10], 0x28
mov dword [esp + 0x40], ebx
je 0x4b29c9
mov dword [esp + 0x40], 1
cmp edx, ebx
je 0x4b29d7
test byte [edx + 0x10], 0x28
mov dword [esp + 0x44], ebx
je 0x4b29df
mov dword [esp + 0x44], 1
cmp ecx, ebx
jne 0x4b29eb
cmp edi, ebx
mov dword [esp + 0x18], ebx
jle 0x4b29f3
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], edi
cmp ecx, ebx
je 0x4b2a33
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x38]
mov edx, dword [ecx]
mov ebx, edi
mov edi, dword [esp + 0x10]
lea esi, [eax + ebx]
mov eax, dword [edx + 0xc]
call fcn.0048b090
mov eax, dword [esp + 0x20]
push eax
push esi
push 0x47
mov eax, ebp
call fcn.00489bd0
mov esi, dword [esp + 0x3c]
add esp, 0xc
inc ebx
mov dword [esp + 0x1c], ebx
jmp 0x4b2a5a
cmp dword [esp + 0x54], ebx
je 0x4b2a5a
add eax, edi
push eax
push ebx
push 0x77
mov eax, ebp
call fcn.00489bd0
add esp, 0xc
inc edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x18], 1
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x10]
push ecx
push edx
call fcn.0048cf50
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x28]
push edx
lea edx, [eax + ecx*2]
mov eax, dword [esp + 0x5c]
lea ecx, [eax + edx*2]
mov edx, dword [esp + ecx*4 + 0x80]
push edx
mov eax, ebp
call fcn.00489ad0
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp]
add esp, 0x18
test ecx, ecx
je 0x4b2adb
cmp byte [edi + 0x1e], 0
jne 0x4b2adb
test eax, eax
jge 0x4b2abc
mov eax, dword [ebp + 0xc]
dec eax
lea eax, [eax + eax*4]
lea ebx, [ecx + eax*4]
movsx eax, byte [ebx + 1]
mov ecx, dword [ebx + 0x10]
call fcn.00489f10
mov ecx, dword [esp + 0x1c]
mov dword [ebx + 0x10], ecx
mov byte [ebx + 1], 0xf2
jmp 0x4b2ae9
mov ecx, dword [esp + 0x1c]
mov eax, 0xfffffff2
call fcn.00489f10
cmp dword [esp + 0x4c], 0
mov edi, dword [esp + 0x24]
je 0x4b2b43
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x10]
mov eax, edi
lea esi, [edx + eax]
push esi
mov edx, ebx
call fcn.00482e80
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
mov edi, ebx
call fcn.0048b090
mov eax, dword [esp + 0x24]
push eax
push esi
push 0x47
mov eax, ebp
call fcn.00489bd0
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x48]
mov edi, dword [esp + 0x34]
push ecx
inc edi
push edx
call fcn.0048cf50
mov esi, dword [esp + 0x48]
add esp, 0x18
cmp dword [esp + 0x4c], 0
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x30], eax
jne 0x4b2b5b
cmp dword [esp + 0x24], 0
jne 0x4b2b5b
xor eax, eax
jmp 0x4b2b60
mov eax, 1
mov ebx, dword [esp + 0x48]
lea ecx, [ebx + 1]
imul ecx, eax
mov eax, dword [esp + ecx*4 + 0x60]
cmp eax, 0x18
je 0x4b2ba5
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
push 0xfffffffffffffff2
push edi
push eax
mov eax, dword [esp + 0x44]
mov edi, ebp
call fcn.0048feb0
mov eax, dword [ebp + 0x14]
add esp, 0xc
test eax, eax
je 0x4b2ba5
cmp dword [esp + 0x44], ebx
mov ecx, dword [ebp + 0xc]
setne dl
lea ecx, [ecx + ecx*4]
mov byte [eax + ecx*4 - 0x11], dl
mov eax, dword [esp + 0x10]
call fcn.00483100
test dword [esi], 0x300000
mov edi, eax
je 0x4b2bde
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
push edi
push edx
push eax
push 3
mov eax, ebp
call fcn.00489ad0
mov ecx, dword [esp + 0x6c]
push ecx
push edi
push 0x47
mov eax, ebp
call fcn.00489bd0
add esp, 0x1c
mov ebx, dword [esp + 0x10]
mov esi, edi
mov edx, ebx
call fcn.00483120
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x30]
call fcn.00484ec0
mov eax, dword [esp + 0x4c]
call fcn.00484ec0
cmp dword [esp + 0x28], 0
jne 0x4b2c45
mov eax, ebx
call fcn.00483100
mov edx, dword [esp + 0x2c]
mov edi, eax
push edi
push edx
push 0x39
mov eax, ebp
mov dword [esp + 0x64], edi
call fcn.00489bd0
mov eax, dword [esp + 0x48]
push edi
push 0xffffffffffffffff
push eax
mov ecx, ebx
call fcn.00482d40
mov ecx, dword [esp + 0x54]
push edi
push ecx
push 5
mov eax, ebp
call fcn.00489bd0
add esp, 0x24
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x2c]
neg edx
sbb dl, dl
and dl, 0xc7
add dl, 0x6a
mov byte [esi + 0x29], dl
mov dword [esi + 0x2c], eax
jmp 0x4b2e71
test eax, 0x10000000
je 0x4b2e41
mov ebx, dword [esp + 0x10]
inc dword [ebx + 0x48]
mov ecx, dword [ebx + 0x48]
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x28], eax
mov eax, ebp
mov dword [esp + 0x1c], ecx
call fcn.00489c30
mov edx, esi
mov esi, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [edx + 8]
mov dword [esp + 0x24], eax
mov eax, dword [eax + 0xc]
mov ecx, 1
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0xb0]
mov edx, ecx
mov word [esp + 0x6c], cx
mov ecx, 0xe
lea edi, [esp + 0x74]
and eax, 8
mov word [esp + 0x6e], dx
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x20], eax
jne 0x4b2cf3
mov eax, dword [ebx + 0x48]
lea ecx, [eax + 1]
lea eax, [ecx + 1]
push ecx
mov dword [ebx + 0x48], eax
mov dword [esp + 0x2c], eax
push 0
push 0x77
mov eax, ebp
mov dword [esp + 0x50], ecx
call fcn.00489bd0
add esp, 0xc
mov eax, dword [esp + 0x1c]
push eax
xor esi, esi
push esi
push 0x30
mov eax, ebp
call fcn.00489bd0
mov edi, dword [esp + 0x60]
add esp, 0xc
cmp dword [edi + 0x14], esi
mov ecx, eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x2c], esi
jle 0x4b2de7
mov dword [esp + 0x40], esi
mov eax, dword [edi + 0x1c]
add eax, dword [esp + 0x40]
mov ecx, dword [eax + 8]
cmp ecx, dword [esp + 0x3c]
je 0x4b2d41
mov edx, 0x200
cmp word [eax + 0x10], dx
jne 0x4b2dcc
mov eax, dword [eax]
push 0x70
push 0
push eax
lea ecx, [esp + 0x78]
push ecx
push ebx
call fcn.004b3040
mov esi, eax
add esp, 0x14
test esi, esi
je 0x4b2dcc
cmp word [esp + 0x20], 0
jne 0x4b2db0
mov edx, dword [edi + 0x14]
dec edx
cmp dword [esp + 0x2c], edx
jne 0x4b2d73
or edi, 0xffffffff
jmp 0x4b2d77
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [edx + 0xc]
push ecx
push 0xffffffffffffffff
push eax
push ebx
xor eax, eax
call fcn.004ac980
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x58]
push 0xfffffffffffffff2
push edi
add ecx, 2
push 0x71
mov edi, ebp
call fcn.0048feb0
mov edi, dword [esp + 0x74]
add esp, 0x20
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
push ecx
push edx
push 0x2f
mov eax, ebp
call fcn.00489bd0
push esi
call fcn.0048d060
add esp, 0x10
mov eax, dword [esp + 0x2c]
add dword [esp + 0x40], 0x28
inc eax
cmp eax, dword [edi + 0x14]
mov dword [esp + 0x2c], eax
jl 0x4b2d22
mov ecx, dword [esp + 0x38]
mov eax, dword [ebp + 0xc]
cmp eax, ecx
jle 0x4b2df8
mov edx, dword [ebp + 0x14]
lea ecx, [ecx + ecx*4]
mov dword [edx + ecx*4 + 4], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0x18]
push ecx
push 0
push 0x60
mov eax, ebp
call fcn.00489bd0
mov eax, dword [ebp + 0x20]
add esp, 0xc
test eax, eax
je 0x4b2e27
mov edx, dword [esp + 0x14]
lea ecx, [edx*4 + 4]
mov edx, dword [ebp + 0xc]
sub eax, ecx
mov dword [eax], edx
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0x24]
mov byte [esi + 0x29], 0x19
call fcn.00484ec0
jmp 0x4b2e71
mov cl, byte [ebx + 0x563c10]
mov edx, dword [esp + 0x2c]
mov byte [esi + 0x29], cl
mov dword [esi + 0x2c], edi
movzx eax, byte [ebx + 0x563c14]
push edx
push edi
push eax
mov eax, ebp
call fcn.00489bd0
mov ebx, dword [esp + 0x1c]
add esp, 0xc
inc eax
mov dword [esi + 0x30], eax
mov byte [esi + 0x2a], 1
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + 4]
mov eax, dword [edx]
xor ecx, ecx
test eax, eax
jle 0x4b2e97
add edx, 4
mov esi, dword [esp + 0x3c]
cmp dword [edx], esi
je 0x4b3006
inc ecx
add edx, 4
cmp ecx, eax
jl 0x4b2e83
xor eax, eax
xor edx, edx
not eax
and dword [esp + 0xb4], eax
mov eax, dword [esp + 0x34]
mov edi, dword [eax + 0x14]
mov esi, dword [eax + 0x1c]
not edx
and dword [esp + 0xb8], edx
test edi, edi
jle 0x4b2f0d
jmp 0x4b2ec0
test byte [esi + 0x12], 6
jne 0x4b2f05
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
and eax, dword [esp + 0xb4]
and ecx, dword [esp + 0xb8]
or eax, ecx
jne 0x4b2f05
mov edx, dword [esp + 0x30]
cmp dword [edx + 0xc], 0
mov eax, dword [esi]
je 0x4b2ef0
test byte [eax + 2], 1
je 0x4b2f05
mov ecx, dword [esp + 0x5c]
push 8
push ecx
push eax
push ebx
call fcn.004a22a0
add esp, 0x10
or byte [esi + 0x12], 4
dec edi
add esi, 0x28
test edi, edi
jg 0x4b2ec0
mov edx, dword [esp + 0x30]
cmp dword [edx + 0xc], 0
je 0x4b2fc0
mov ecx, dword [ebp + 0xc]
mov eax, edx
mov edx, dword [eax + 0xc]
mov dword [eax + 0x24], ecx
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], esi
mov dword [esp + 0x28], edx
jg 0x4b2f3d
mov edi, ebp
call fcn.00489a50
test eax, eax
jne 0x4b2f6d
mov edx, dword [ebp + 0x14]
mov ecx, 1
add dword [ebp + 0xc], ecx
lea eax, [esi + esi*4]
lea eax, [edx + eax*4]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 8], ecx
xor ecx, ecx
mov byte [eax], 0x30
mov byte [eax + 3], 0
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov byte [ebp + 0x6e], cl
mov ebp, dword [esp + 0x34]
mov edx, ebx
call fcn.00482f20
mov esi, dword [ebp + 0x1c]
xor edi, edi
cmp dword [ebp + 0x14], edi
jle 0x4b2fc0
test byte [esi + 0x12], 6
jne 0x4b2fb7
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
and eax, dword [esp + 0xb4]
and ecx, dword [esp + 0xb8]
or eax, ecx
jne 0x4b2fb7
mov edx, dword [esp + 0x5c]
mov eax, dword [esi]
push 8
push edx
push eax
push ebx
call fcn.004a22a0
add esp, 0x10
or byte [esi + 0x12], 4
inc edi
add esi, 0x28
cmp edi, dword [ebp + 0x14]
jl 0x4b2f82
mov esi, dword [esp + 0x58]
test esi, esi
je 0x4b2fed
mov dl, byte [ebx + 0x15]
cmp dl, 8
jae 0x4b2fed
xor eax, eax
lea ecx, [ebx + 0x60]
cmp dword [ecx + 0x10], esi
je 0x4b3017
inc eax
add ecx, 0x18
cmp eax, 0xa
jl 0x4b2fd5
movzx ecx, dl
mov dword [ebx + ecx*4 + 0x18], esi
inc byte [ebx + 0x15]
mov edx, dword [esp + 0xb8]
mov eax, dword [esp + 0xb4]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret
mov eax, 1
xor edx, edx
call fcn.0051c640
jmp 0x4b2e9b
mov edx, dword [esp + 0xb8]
mov eax, dword [esp + 0xb4]
pop edi
pop esi
pop ebp
mov byte [ecx + 9], 1
pop ebx
add esp, 0x9c
ret