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

Disassembly:
push 0xffffffffffffffff
push 0x46eb3d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3d0
mov eax, dword [0x48f0a4]
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
mov dword [esp + 0x2c], eax
jne 0x40fe75
xor eax, eax
jmp 0x410dc1
mov eax, dword [esp + 0x3f0]
push 1
push eax
call fcn.00412630
mov ebp, eax
add esp, 8
cmp ebp, ebx
jne 0x40fe94
xor eax, eax
jmp 0x410dc1
lea esi, [esp + 0x88]
mov edi, 5
mov ecx, esi
call fcn.00412db0
add esi, 0xc
dec edi
jne 0x40fea0
xor ecx, ecx
mov edi, str.DATAFILE
mov dword [esp + 0x74], ecx
xor eax, eax
mov dword [esp + 0x78], ecx
lea edx, [esp + 0x74]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x88]
mov dword [ecx], eax
inc eax
add ecx, 0xc
cmp eax, 5
jl 0x40fef1
mov edx, dword [ebp]
lea eax, [esp + 0x74]
push 0x50
push eax
mov ecx, ebp
call dword [edx + 0x14]
lea ecx, [esp + 0x30]
push ecx
call dword [0x4732e8]
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x18]
mov ecx, 0x10
mov dword [esp + 0x8c], eax
mov eax, dword [ebp]
mov dword [esp + 0x90], ecx
push ecx
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebp
mov dword [esp + 0x90], ebx
call dword [eax + 0x14]
mov ecx, 0x48efa8
call fcn.0040b2c0
push eax
mov ecx, 0x48f280
call fcn.00420b30
mov esi, eax
cmp esi, ebx
je 0x40ff7e
mov edx, dword [esi]
push 0x4b
push 0x64
mov ecx, esi
call dword [edx + 0x9c]
test al, al
jne 0x40ff9b
push esi
mov ecx, 0x48f280
call fcn.00420c60
push ebp
call fcn.0041cda0
mov eax, dword [esp + 0x3f4]
push eax
call fcn.00412560
add esp, 8
xor eax, eax
jmp 0x410dc1
mov eax, dword [esi]
push 0xff
mov ecx, esi
call dword [eax + 0x8c]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x68]
mov edi, eax
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x18]
mov edx, dword [ebp]
mov ecx, 1
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], edi
mov eax, dword [esi]
push edi
mov ecx, esi
mov dword [esp + 0x2c], edx
call dword [eax + 0x64]
mov edx, dword [esp + 0x2c]
push eax
mov ecx, ebp
call dword [edx + 0x14]
push esi
mov ecx, 0x48f280
call fcn.00420c60
mov eax, dword [esp + 0x2c]
mov edx, dword [eax + 0x60]
lea ecx, [eax + 0x60]
call dword [edx + 0xc]
mov esi, eax
xor edi, edi
cmp esi, ebx
je 0x41001c
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x18]
mov edx, dword [ebp]
mov ecx, 2
mov dword [esp + 0xa0], ecx
push edi
push esi
mov ecx, ebp
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], edi
call dword [edx + 0x14]
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x18]
mov ecx, 3
mov dword [esp + 0xb0], eax
mov dword [esp + 0xac], ecx
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0xd5]
mov byte [esp + 0xd4], bl
mov edx, 0x100
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x48f09c]
mov dword [esp + 0xb4], edx
xor edx, edx
mov eax, dword [eax + 0x17c]
cmp eax, ebx
je 0x4100b6
cmp byte [eax + 0xa48], bl
je 0x4100b6
mov edx, dword [eax + 0xa38]
lea ecx, [eax + 0xa38]
call dword [edx + 0xf4]
mov edx, eax
mov dword [esp + 0x30], vtable.org::CBuffer.0
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
cmp edx, ebx
mov dword [esp + 0x3e8], ebx
je 0x41011a
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x30]
push ecx
push edx
push eax
call fcn.0041b1d0
add esp, 0xc
test al, al
je 0x41011a
mov ecx, dword [esp + 0x38]
cmp ecx, 0xfe
jl 0x410101
mov ecx, 0xfe
mov esi, dword [esp + 0x34]
mov edx, ecx
lea edi, [esp + 0xd4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp]
lea ecx, [esp + 0xd4]
push 0x100
push ecx
mov ecx, ebp
call dword [eax + 0x14]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x3e8], 0xffffffff
cmp eax, ebx
mov dword [esp + 0x30], vtable.org::CBuffer.0
je 0x410153
push eax
call fcn.00461db1
add esp, 4
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x30]
call dword [edx + 0x68]
mov esi, dword [0x48f0a8]
mov eax, dword [ebp]
mov ecx, ebp
mov dword [esp + 0x28], esi
call dword [eax + 0x18]
cmp esi, ebx
mov dword [esp + 0x20], eax
je 0x4103d9
mov eax, dword [0x48b194]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov eax, dword [esi + 8]
lea ecx, [esp + 0x40]
push ecx
mov ecx, esi
mov dword [esp + 0x3ec], 1
mov dword [esi + 0x24], eax
call fcn.0040e1e0
cmp eax, 1
jne 0x410389
mov dword [esp + 0x30], vtable.org::CBuffer.0
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x18], ebx
mov byte [esp + 0x3e8], 2
mov eax, dword [edx - 8]
mov esi, dword [ecx - 8]
lea ecx, [esp + 0x30]
lea esi, [esi + eax + 8]
call dword [0x4738d8]
lea edx, [esi + 1]
push edx
call fcn.00461d88
mov edi, eax
add esp, 4
cmp edi, ebx
mov dword [esp + 0x34], edi
je 0x41021a
mov ecx, esi
xor eax, eax
mov edx, ecx
mov dword [esp + 0x38], esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x34]
mov byte [eax + esi], bl
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x58], vtable.org::CString.0
push 0x10
mov byte [esp + 0x3ec], 3
mov dword [esp + 0x54], vtable.org::CArchive.0
call fcn.00461d88
add esp, 4
mov dword [esp + 0x6c], eax
cmp eax, ebx
mov byte [esp + 0x3e8], 4
je 0x410267
push esi
push edi
mov ecx, eax
call fcn.00412a40
jmp 0x410269
xor eax, eax
mov edx, dword [esp + 0x58]
push str.ArchiveBuffer
lea ecx, [esp + 0x5c]
mov byte [esp + 0x3ec], 3
mov dword [esp + 0x58], eax
call dword [edx + 0x98]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x54]
cmp ecx, ebx
mov byte [esp + 0x3e8], 5
mov eax, dword [eax - 8]
mov dword [esp + 0x18], eax
je 0x4102ca
mov edx, dword [ecx]
lea eax, [esp + 0x18]
push 4
push eax
call dword [edx + 0x10]
mov ecx, dword [esp + 0x54]
cmp ecx, ebx
je 0x4102ca
mov eax, dword [esp + 0x18]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x44]
push eax
call dword [edx + 0x10]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x44]
cmp ecx, ebx
mov eax, dword [edx - 8]
mov dword [esp + 0x18], eax
je 0x4102fc
mov eax, dword [ecx]
lea edx, [esp + 0x18]
push 4
push edx
call dword [eax + 0x10]
mov ecx, dword [esp + 0x54]
cmp ecx, ebx
je 0x4102fc
mov edx, dword [esp + 0x18]
mov eax, dword [ecx]
push edx
mov edx, dword [esp + 0x48]
push edx
call dword [eax + 0x10]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov eax, dword [ebp]
push ecx
push edx
mov ecx, ebp
call dword [eax + 0x14]
mov dword [esp + 0x50], vtable.org::CArchive.0
mov ecx, dword [esp + 0x54]
mov byte [esp + 0x3e8], 6
cmp ecx, ebx
je 0x41032c
mov eax, dword [ecx]
push 1
call dword [eax]
mov esi, vtable.org::CBuffer.0
lea ecx, [esp + 0x58]
mov dword [esp + 0x54], ebx
mov byte [esp + 0x3e8], 2
mov dword [esp + 0x58], esi
call fcn.0040c4a0
mov eax, dword [esp + 0x34]
mov byte [esp + 0x3e8], 1
cmp eax, ebx
mov dword [esp + 0x30], esi
je 0x410367
push eax
call fcn.00461db1
add esp, 4
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x30]
call dword [edx + 0x68]
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x40]
push eax
call fcn.0040e2f0
cmp eax, 1
je 0x4101af
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x18]
mov ecx, dword [esp + 0x20]
mov edx, 4
sub eax, ecx
mov dword [esp + 0xb8], edx
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xc0], eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x3e8], 7
call fcn.00462047
lea ecx, [esp + 0x40]
mov dword [esp + 0x3e8], 0xffffffff
call fcn.00462047
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x18]
mov edx, dword [ebp]
push 2
push ebx
mov ecx, ebp
mov esi, eax
call dword [edx + 4]
mov eax, dword [ebp]
lea ecx, [esp + 0x74]
push 0x50
push ecx
mov ecx, ebp
mov dword [esp + 0x8c], esi
call dword [eax + 0x14]
mov edx, dword [ebp]
push 2
push esi
mov ecx, ebp
call dword [edx + 4]
lea ecx, [esp + 0xc4]
push ecx
call dword [0x4732e8]
mov edx, dword [ebp]
lea eax, [esp + 0xc4]
push 0x10
push eax
mov ecx, ebp
call dword [edx + 0x14]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x14], ebx
mov byte [esp + 0x12], 4
mov esi, dword [ecx + 0x158]
lea eax, [esi + esi]
push eax
mov dword [esp + 0x2c], eax
call fcn.00461d88
mov edi, eax
add esp, 4
xor eax, eax
cmp esi, ebx
jbe 0x41047d
mov edx, dword [esp + 0x2c]
cmp eax, dword [edx + 0x158]
jl 0x41046a
xor ecx, ecx
jmp 0x410474
mov ecx, dword [edx + 0x154]
mov cx, word [ecx + eax*2]
mov word [edi + eax*2], cx
inc eax
cmp eax, esi
jb 0x41045e
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x12]
mov dword [esp + 0x14], edx
mov eax, dword [ebp]
push 1
push ecx
mov ecx, ebp
call dword [eax + 0x14]
mov edx, dword [ebp]
lea eax, [esp + 0x14]
push 4
push eax
mov ecx, ebp
call dword [edx + 0x14]
mov eax, dword [esp + 0x14]
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebp
call dword [edx + 0x14]
push edi
call fcn.00461db1
mov ecx, dword [esp + 0x30]
mov byte [esp + 0x16], bl
add esp, 4
xor eax, eax
mov ecx, dword [ecx + 0x80]
mov dword [esp + 0x14], ebx
cmp ecx, ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
jbe 0x410629
mov ecx, dword [esp + 0x2c]
cmp eax, ebx
jl 0x410500
cmp eax, dword [ecx + 0x74]
jge 0x410500
mov ecx, dword [ecx + 0x70]
lea edx, [eax*8]
sub edx, eax
lea edx, [ecx + edx*4]
mov dword [esp + 0x1c], edx
jmp 0x410504
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 0x7c]
mov esi, dword [edx + eax*4]
cmp esi, ebx
je 0x410618
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd5]
mov byte [esp + 0xd4], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 8]
lea ecx, [eax + 8]
call dword [edx + 0xf4]
push eax
lea eax, [esp + 0xd8]
push 0x104
push eax
call fcn.00434610
mov cl, byte [esp + 0x30]
add esp, 0xc
mov byte [esp + 0x30], cl
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x58]
mov edi, dword [esp + 0x1c]
test al, al
setne al
mov byte [esp + 0x31], al
mov cx, word [edi]
mov word [esp + 0x32], cx
mov dx, word [edi + 4]
mov word [esp + 0x34], dx
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x4c]
mov word [esp + 0x36], ax
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x50]
mov word [esp + 0x38], ax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x6c]
mov byte [esp + 0x3a], al
xor eax, eax
movsx ecx, word [edi + 0x18]
mov dword [esp + 0x3c], ecx
lea edi, [esp + 0xd4]
or ecx, 0xffffffff
push 1
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xf
lea eax, [esp + 0x16]
mov dword [esp + 0x18], ecx
mov edx, dword [ebp]
push eax
mov ecx, ebp
call dword [edx + 0x14]
mov edx, dword [ebp]
lea eax, [esp + 0x14]
push 4
push eax
mov ecx, ebp
call dword [edx + 0x14]
mov edx, dword [ebp]
lea eax, [esp + 0x30]
push 0x10
push eax
mov ecx, ebp
call dword [edx + 0x14]
lea edi, [esp + 0xd4]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebp]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0xd4]
push ecx
push eax
mov ecx, ebp
call dword [edx + 0x14]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
inc eax
cmp eax, ecx
mov dword [esp + 0x24], eax
jb 0x4104de
mov ecx, dword [0x48f09c]
mov byte [esp + 0x12], 2
cmp ecx, ebx
je 0x4108b8
mov edx, dword [ecx + 0x17c]
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x48], eax
mov eax, dword [0x48f0a8]
cmp eax, ebx
mov byte [esp + 0x40], bl
je 0x4108b8
mov esi, dword [esp + 0x2c]
xor edx, edx
mov dword [esp + 0x40], edx
mov eax, dword [esi + 0x17c]
mov dword [esp + 0x44], edx
cmp eax, ebx
mov dword [esp + 0x48], edx
jle 0x410684
dec eax
mov dword [esp + 0x44], eax
jmp 0x410688
mov dword [esp + 0x44], ebx
call fcn.004188f0
mov cl, byte [0x48f220]
mov edx, dword [ebp]
test al, al
setne al
mov byte [esp + 0x40], al
lea eax, [esp + 0x12]
mov byte [esp + 0x48], cl
push 1
push eax
mov ecx, ebp
call dword [edx + 0x14]
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x58], vtable.org::CString.0
mov edi, vtable.org::CArchive.0
push 8
mov dword [esp + 0x3ec], 8
mov dword [esp + 0x54], edi
call fcn.00461d88
add esp, 4
cmp eax, ebx
je 0x4106ec
mov dword [eax + 4], ebp
mov dword [eax], vtable.org::CArchiveFile.0
jmp 0x4106ee
xor eax, eax
mov edx, dword [ebp]
mov ecx, ebp
mov dword [esp + 0x54], eax
call dword [edx + 0x20]
push eax
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x5c]
call dword [eax + 0x98]
lea ecx, [esp + 0x50]
mov dword [esp + 0x3e8], 9
push ecx
mov ecx, esi
call fcn.004438e0
mov dword [esp + 0x50], edi
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x3e8], 0xa
cmp ecx, ebx
je 0x41073d
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x54], ebx
cmp eax, ebx
mov dword [esp + 0x3e8], 0xffffffff
mov dword [esp + 0x58], vtable.org::CBuffer.0
je 0x410765
push eax
call fcn.00461db1
add esp, 4
mov eax, dword [esp + 0x58]
lea ecx, [esp + 0x58]
call dword [eax + 0x68]
mov edx, dword [ebp]
lea eax, [esp + 0x40]
push 0xc
push eax
mov ecx, ebp
call dword [edx + 0x14]
mov eax, dword [esi + 0x4c]
cmp eax, ebx
je 0x4107bf
mov edx, dword [eax + 0xc]
lea ecx, [eax + 0xc]
call dword [edx + 0x6c]
mov esi, eax
cmp esi, ebx
je 0x4107bf
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], ecx
mov eax, dword [ebp]
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebp
call dword [eax + 0x14]
mov eax, dword [esp + 0x14]
mov edx, dword [ebp]
push eax
push esi
jmp 0x4107cd
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ebx
mov edx, dword [ebp]
push 4
push eax
mov ecx, ebp
call dword [edx + 0x14]
mov ecx, dword [esp + 0x20]
add ecx, 0xa38
mov edx, dword [ecx]
call dword [edx + 0xf4]
mov edx, eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
cmp edx, ebx
mov dword [esp + 0x3e8], 0xb
mov dword [esp + 0x30], vtable.org::CString.0
je 0x41081d
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x38]
call dword [0x473814]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x3e8], 0xc
cmp eax, ebx
jne 0x410836
mov dword [esp + 0x14], ebx
jmp 0x410864
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x30]
call dword [eax + 0x1c]
test al, al
je 0x410849
xor ecx, ecx
jmp 0x410860
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x30]
call dword [edx + 0xc]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x14], ecx
mov eax, dword [ebp]
lea ecx, [esp + 0x14]
push 4
push ecx
mov ecx, ebp
call dword [eax + 0x14]
mov eax, dword [esp + 0x14]
cmp eax, ebx
jbe 0x410889
mov edx, dword [ebp]
push eax
mov eax, dword [esp + 0x38]
mov ecx, ebp
push eax
call dword [edx + 0x14]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x3e8], 0xffffffff
cmp eax, ebx
mov dword [esp + 0x30], vtable.org::CBuffer.0
je 0x4108ad
push eax
call fcn.00461db1
add esp, 4
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x30]
call dword [edx + 0x68]
lea ecx, [esp + 0x12]
mov byte [esp + 0x12], 3
mov eax, dword [ebp]
push 1
push ecx
mov ecx, ebp
call dword [eax + 0x14]
mov edi, dword [esp + 0x2c]
mov ecx, edi
call fcn.00444090
mov esi, eax
mov dword [esp + 0x18], ebx
cmp esi, ebx
je 0x4108f5
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x2c]
not ecx
dec ecx
mov dword [esp + 0x18], ecx
mov edx, dword [ebp]
lea eax, [esp + 0x18]
push 4
push eax
mov ecx, ebp
call dword [edx + 0x14]
mov eax, dword [esp + 0x18]
cmp eax, ebx
jbe 0x410916
mov edx, dword [ebp]
push eax
push esi
mov ecx, ebp
call dword [edx + 0x14]
mov ecx, edi
call fcn.00444080
mov ecx, eax
xor eax, eax
cmp ecx, ebx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], eax
jbe 0x410a43
or esi, 0xffffffff
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov byte [esp + 0x5c], bl
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x60], vtable.org::CString.0
lea ecx, [esp + 0x50]
mov dword [esp + 0x3e8], 0xd
push ecx
push eax
mov ecx, edi
call fcn.004440a0
test al, al
jne 0x41098c
mov eax, dword [esp + 0x64]
mov dword [esp + 0x3e8], esi
cmp eax, ebx
mov dword [esp + 0x60], vtable.org::CBuffer.0
je 0x410a23
jmp 0x410a1a
mov eax, dword [esp + 0x68]
push 1
add eax, 6
mov ecx, ebp
mov dword [esp + 0x18], eax
mov edx, dword [ebp]
lea eax, [esp + 0x16]
push eax
call dword [edx + 0x14]
mov edx, dword [ebp]
lea eax, [esp + 0x14]
push 4
push eax
mov ecx, ebp
call dword [edx + 0x14]
mov edx, dword [ebp]
lea eax, [esp + 0x24]
push 1
push eax
mov ecx, ebp
call dword [edx + 0x14]
mov edx, dword [ebp]
lea eax, [esp + 0x54]
push 2
push eax
mov ecx, ebp
call dword [edx + 0x14]
mov edx, dword [ebp]
lea eax, [esp + 0x58]
push 2
push eax
mov ecx, ebp
call dword [edx + 0x14]
mov edx, dword [ebp]
lea eax, [esp + 0x5c]
push 1
push eax
mov ecx, ebp
call dword [edx + 0x14]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
mov edx, dword [ebp]
push eax
push ecx
mov ecx, ebp
call dword [edx + 0x14]
mov eax, dword [esp + 0x64]
mov dword [esp + 0x3e8], esi
cmp eax, ebx
mov dword [esp + 0x60], vtable.org::CBuffer.0
je 0x410a23
push eax
call fcn.00461db1
add esp, 4
mov edx, dword [esp + 0x60]
lea ecx, [esp + 0x60]
call dword [edx + 0x68]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
inc eax
cmp eax, ecx
mov dword [esp + 0x24], eax
jb 0x410934
xor ecx, ecx
lea edx, [edi + 0x8c]
mov byte [esp + 0x12], 6
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], edx
cmp ecx, ebx
jl 0x410c92
cmp ecx, 4
jge 0x410c92
cmp edx, ebx
je 0x410c92
mov esi, dword [edx + 0x18]
xor eax, eax
cmp esi, ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], eax
jbe 0x410c92
cmp eax, ebx
jl 0x410c7d
mov edx, dword [esp + 0x1c]
cmp dword [edx + 0x18], eax
jl 0x410c7d
mov edx, dword [edx + 0x14]
mov esi, dword [edx + eax*4]
cmp esi, ebx
je 0x410c7d
mov byte [esp + 0x4f], cl
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd5]
mov byte [esp + 0xd4], bl
mov byte [esp + 0x1d8], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1d9]
mov byte [esp + 0x2dc], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x2dd]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x48]
push eax
lea ecx, [esp + 0xd8]
push 0x104
push ecx
call fcn.00434610
mov edx, dword [esi]
add esp, 0xc
mov ecx, esi
call dword [edx + 0x4c]
push eax
lea eax, [esp + 0x1dc]
push 0x104
push eax
call fcn.00434610
mov edx, dword [esi]
add esp, 0xc
mov ecx, esi
call dword [edx + 0x50]
push eax
lea eax, [esp + 0x2e0]
push 0x104
push eax
call fcn.00434610
lea edi, [esp + 0xe0]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x1d8]
mov dword [esp + 0x70], ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x2dc]
mov dword [esp + 0x40], ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x6c], ecx
mov cl, byte [esp + 0x24]
mov byte [esp + 0x18], cl
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x40]
mov byte [esp + 0x19], al
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x6c]
mov byte [esp + 0x1a], al
add edx, ecx
mov eax, dword [esp + 0x70]
push 1
lea ecx, [edx + eax + 0x10]
lea eax, [esp + 0x16]
mov dword [esp + 0x18], ecx
mov edx, dword [ebp]
push eax
mov ecx, ebp
call dword [edx + 0x14]
mov edx, dword [ebp]
lea eax, [esp + 0x14]
push 4
push eax
mov ecx, ebp
call dword [edx + 0x14]
mov edx, dword [ebp]
lea eax, [esp + 0x18]
push 3
push eax
mov ecx, ebp
call dword [edx + 0x14]
mov edx, dword [ebp]
lea eax, [esp + 0x4f]
push 1
push eax
mov ecx, ebp
call dword [edx + 0x14]
mov edx, dword [ebp]
lea eax, [esp + 0x70]
push 4
push eax
mov ecx, ebp
call dword [edx + 0x14]
mov eax, dword [esp + 0x70]
cmp eax, ebx
jbe 0x410c25
mov edx, dword [ebp]
push eax
lea eax, [esp + 0xd8]
mov ecx, ebp
push eax
call dword [edx + 0x14]
mov edx, dword [ebp]
lea eax, [esp + 0x40]
push 4
push eax
mov ecx, ebp
call dword [edx + 0x14]
mov eax, dword [esp + 0x40]
cmp eax, ebx
jbe 0x410c4d
mov edx, dword [ebp]
push eax
lea eax, [esp + 0x1dc]
mov ecx, ebp
push eax
call dword [edx + 0x14]
mov edx, dword [ebp]
lea eax, [esp + 0x6c]
push 4
push eax
mov ecx, ebp
call dword [edx + 0x14]
mov eax, dword [esp + 0x6c]
cmp eax, ebx
jbe 0x410c75
mov edx, dword [ebp]
push eax
lea eax, [esp + 0x2e0]
mov ecx, ebp
push eax
call dword [edx + 0x14]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
inc eax
cmp eax, edx
mov dword [esp + 0x24], eax
jb 0x410a86
mov edx, dword [esp + 0x1c]
inc ecx
add edx, 0x2c
cmp ecx, 4
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], edx
jl 0x410a58
mov byte [esp + 0x12], 7
mov edx, dword [ebp]
lea eax, [esp + 0x12]
push 1
push eax
mov ecx, ebp
call dword [edx + 0x14]
mov esi, dword [esp + 0x2c]
mov edx, dword [ebp]
lea eax, [esp + 0x13]
push 1
mov cl, byte [esi + 0xb2c]
push eax
mov byte [esp + 0x1b], cl
mov ecx, ebp
call dword [edx + 0x14]
cmp byte [esp + 0x13], bl
je 0x410d72
mov ecx, dword [esi + 0xb28]
mov edx, dword [ebp]
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ecx
push 4
push eax
mov ecx, ebp
call dword [edx + 0x14]
mov eax, dword [esp + 0x20]
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x28], edi
jle 0x410d6c
mov ecx, dword [esp + 0x2c]
push edi
call fcn.00444140
mov esi, eax
mov dword [esp + 0x1c], ebx
cmp esi, ebx
jne 0x410d2e
mov edx, dword [ebp]
lea eax, [esp + 0x1c]
push 4
push eax
mov ecx, ebp
call dword [edx + 0x14]
jmp 0x410d5f
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebp]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ecx
push 4
push eax
mov ecx, ebp
call dword [edx + 0x14]
mov eax, dword [esp + 0x1c]
mov edx, dword [ebp]
push eax
push esi
mov ecx, ebp
call dword [edx + 0x14]
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
inc edi
cmp edi, eax
mov dword [esp + 0x28], edi
jl 0x410d09
mov byte [esp + 0x13], bl
jmp 0x410d8b
mov cl, byte [0x48f118]
mov al, byte [0x48f11d]
mov bl, byte [0x48f11f]
or cl, al
or cl, bl
mov byte [esp + 0x13], cl
mov edx, dword [ebp]
lea eax, [esp + 0x13]
push 1
push eax
mov ecx, ebp
call dword [edx + 0x14]
mov byte [esp + 0x12], 0xff
mov edx, dword [ebp]
lea eax, [esp + 0x12]
push 1
push eax
mov ecx, ebp
call dword [edx + 0x14]
push ebp
call fcn.0041cda0
add esp, 4
call fcn.0040f8e0
mov eax, 1
mov ecx, dword [esp + 0x3e0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3dc
ret