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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov esi, ecx
mov ecx, dword [esp + 0x7c]
mov ebp, dword [esp + 0x80]
mov edi, dword [esp + 0x88]
mov edx, dword [esp + 0x8c]
mov ebx, dword [esp + 0xa0]
mov eax, dword [esp + 0xa4]
mov dword [esi + 0x44], eax
mov dword [esp + 0x28], esi
mov esi, dword [esi + 0x24]
test esi, esi
jne 0x455c7d
mov esi, 0x352
cmp eax, esi
cmovg eax, esi
mov esi, dword [esp + 0x28]
mov dword [esi + 0x44], eax
mov eax, dword [esp + 0x28]
add dword [eax + 0x10], 1
test ebx, ebx
je 0x455c8d
add dword [eax + 0xc], 1
mov esi, dword [esp + 0x28]
mov dword [esi + 0x1c], ebx
mov eax, dword [esp + 0x70]
mov dword [esi + 0x11c], eax
mov dword [esi + 0x14], ecx
mov eax, ecx
shl eax, 5
sub eax, ecx
mov esi, eax
shl esi, 7
add eax, esi
add eax, ecx
cmp eax, edi
mov ecx, edi
cmovle ecx, eax
mov edi, dword [esp + 0x28]
mov dword [edi + 0x28], ecx
xor eax, eax
test ebp, ebp
cmovs ebp, eax
mov dword [edi + 0x30], ebp
mov ebp, dword [esp + 0x84]
mov dword [edi + 0x3c], ebp
mov dword [edi + 0x34], edx
lea eax, [edx + edx]
add eax, eax
add eax, eax
add eax, edx
mov esi, eax
shl esi, 4
add eax, esi
add eax, eax
add eax, edx
add eax, eax
sar eax, 0xa
add eax, dword [esp + 0x84]
add eax, ecx
sar eax, 1
cmp eax, ecx
cmovg eax, ecx
mov dword [edi + 0x2c], eax
mov ecx, edi
lea edx, [edi + 0x1320]
mov dword [esp + 4], edx
mov edi, dword [esp + 0x74]
mov dword [esp], edi
test ebx, ebx
je 0x456408
call method.CBitAlloShort.startup_ms_SIG_MASK_____3__12___unsigned_char_____3__192__
sub esp, 8
mov ebx, dword [esp + 0x28]
mov ecx, dword [ebx + 0x50]
test ecx, ecx
jle 0x45641f
mov ebp, ebx
mov ecx, ebx
call method.CBitAlloShort.allocate__
mov esi, dword [ebx + 0x1c]
test esi, esi
jne 0x45611c
mov ebx, dword [ebx + 0x2b90]
mov eax, dword [ebp + 0x2b94]
xor ecx, ecx
test ebx, ebx
cmovs ebx, ecx
mov ebp, dword [esp + 0x28]
mov dword [ebp + 0x2b90], ebx
xor esi, esi
test eax, eax
cmovs eax, esi
mov dword [ebp + 0x2b94], eax
mov edi, dword [ebp + 0x14]
test edi, edi
jle 0x455e12
mov ebx, dword [esp + 0x94]
lea edi, [ebp + 0x2b60]
xor esi, esi
mov eax, dword [ebp + esi*4 + 0x2b90]
add eax, 0x8e
mov edx, 0xff
cmp eax, edx
cmovg eax, edx
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], 1
mov dword [ebx + 0x14], 2
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x3c], 0
mov ecx, dword [ebp + esi*4 + 0x4f98]
mov dword [ebx + 0x40], ecx
mov eax, dword [ebp + esi*4 + 0x54]
mov dword [ebx + 0x4c], eax
mov dword [ebx + 0x50], eax
mov edx, dword [edi]
sar edx, 3
mov dword [ebx + 0x28], edx
mov ecx, dword [edi + 4]
sar ecx, 3
mov dword [ebx + 0x2c], ecx
mov eax, dword [edi + 8]
sar eax, 3
mov dword [ebx + 0x30], eax
mov dword [esp + 4], esi
mov dword [esp], ebx
mov ecx, ebp
call method.CBitAlloShort.output_subdivide2_GR__int_
sub esp, 8
add esi, 1
add ebx, 0x6c
add edi, 0xc
cmp dword [ebp + 0x14], esi
jg 0x455d8c
mov ebp, dword [esp + 0x28]
mov ebx, dword [ebp + 0x18]
test ebx, ebx
je 0x455e2e
mov edi, dword [esp + 0x94]
mov dword [edi + 0xbc], 1
mov esi, dword [esp + 0x90]
mov dword [esp], esi
mov ebp, dword [esp + 0x28]
mov ecx, ebp
call method.CBitAlloShort.output_sf_SCALEFACT_
sub esp, 4
mov ecx, dword [ebp + 0x14]
test ecx, ecx
jle 0x4563f7
mov esi, dword [esp + 0x98]
mov ebp, dword [esp + 0x28]
lea eax, [ebp + 0x58ec]
mov dword [esp + 0x48], eax
mov ebx, ebp
add ebp, ebp
add ebp, ebx
neg ebp
mov dword [esp + 0x4c], 0
mov dword [esp + 0x44], 0
mov edx, esi
mov ebx, 0x900
test esi, 1
jne 0x456612
test dl, 2
jne 0x456627
mov ecx, ebx
shr ecx, 2
mov edi, edx
xor eax, eax
rep stosd dword es:[edi], eax
test bl, 2
je 0x455eac
stosw word es:[edi], ax
and ebx, 1
je 0x455eb4
xor eax, eax
stosb byte es:[edi], al
mov ebx, dword [esp + 0x48]
mov edx, dword [ebx]
test edx, edx
jle 0x456637
mov ecx, dword [esp + 0x4c]
add ecx, dword [esp + 0x9c]
mov edi, dword [esp + 0x28]
lea ebx, [edi + 0x98]
lea eax, [edx + edx]
add eax, eax
mov dword [esp + 0x10], ebx
add eax, ebx
mov dword [esp + 0x34], eax
mov ebx, dword [esp + 0x44]
mov eax, ebx
add eax, ebx
add eax, eax
add eax, eax
add eax, ebx
shl eax, 6
add edi, eax
xor ebx, ebx
add eax, 0x1320
mov dword [esp + 0x3c], eax
lea edi, [edi + 0x1560]
mov dword [esp + 0x38], edi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x10]
mov edi, dword [edx]
mov dword [esp + 0x1c], edi
mov ecx, dword [edx + 4]
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x3c]
add eax, edi
mov ecx, dword [esp + 0x28]
add eax, ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x38]
add eax, edi
mov dword [esp + 0x20], eax
mov eax, ebx
mov ecx, dword [esp + 0x18]
sub ecx, edi
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x18]
cmp dword [esp + 0x1c], edx
jge 0x4560ff
mov ebx, dword [esp + 0x24]
add dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov edi, ebx
sub edi, eax
and edi, 7
je 0x456058
cmp edi, 1
je 0x456036
cmp edi, 2
je 0x456020
cmp edi, 3
je 0x45600a
cmp edi, 4
nop
je 0x455ff4
cmp edi, 5
je 0x455fde
cmp edi, 6
je 0x455fc8
mov edi, edx
mov edx, dword [ebp + edx*4 - 0x4b60]
mov dword [esi + eax*4], edx
movzx ebx, byte [edi]
mov byte [esp + 0x2c], bl
mov byte [ecx + eax], bl
add eax, 1
lea edx, [edi + 1]
mov edi, dword [ebp + edx*4 - 0x4b60]
mov dword [esi + eax*4], edi
movzx ebx, byte [edx]
mov byte [ecx + eax], bl
add eax, 1
add edx, 1
mov edi, dword [ebp + edx*4 - 0x4b60]
mov dword [esi + eax*4], edi
movzx ebx, byte [edx]
mov byte [ecx + eax], bl
add eax, 1
add edx, 1
mov edi, dword [ebp + edx*4 - 0x4b60]
mov dword [esi + eax*4], edi
movzx ebx, byte [edx]
mov byte [ecx + eax], bl
add eax, 1
add edx, 1
mov edi, dword [ebp + edx*4 - 0x4b60]
mov dword [esi + eax*4], edi
movzx ebx, byte [edx]
mov byte [ecx + eax], bl
add eax, 1
add edx, 1
mov edi, dword [ebp + edx*4 - 0x4b60]
mov dword [esi + eax*4], edi
movzx ebx, byte [edx]
mov byte [ecx + eax], bl
add eax, 1
add edx, 1
mov edi, dword [ebp + edx*4 - 0x4b60]
mov dword [esi + eax*4], edi
movzx ebx, byte [edx]
mov byte [ecx + eax], bl
add eax, 1
add edx, 1
mov edi, dword [esp + 0x10]
cmp eax, edi
je 0x4560ff
mov ebx, dword [ebp + edx*4 - 0x4b60]
mov dword [esi + eax*4], ebx
movzx ebx, byte [edx]
mov byte [ecx + eax], bl
mov edi, dword [ebp + edx*4 - 0x4b5c]
mov dword [esi + eax*4 + 4], edi
movzx ebx, byte [edx + 1]
mov byte [ecx + eax + 1], bl
mov edi, dword [ebp + edx*4 - 0x4b58]
mov dword [esi + eax*4 + 8], edi
movzx ebx, byte [edx + 2]
mov byte [ecx + eax + 2], bl
mov edi, dword [ebp + edx*4 - 0x4b54]
mov dword [esi + eax*4 + 0xc], edi
movzx ebx, byte [edx + 3]
mov byte [ecx + eax + 3], bl
mov edi, dword [ebp + edx*4 - 0x4b50]
mov dword [esi + eax*4 + 0x10], edi
movzx ebx, byte [edx + 4]
mov byte [ecx + eax + 4], bl
mov edi, dword [ebp + edx*4 - 0x4b4c]
mov dword [esi + eax*4 + 0x14], edi
movzx ebx, byte [edx + 5]
mov byte [ecx + eax + 5], bl
mov edi, dword [ebp + edx*4 - 0x4b48]
mov dword [esi + eax*4 + 0x18], edi
movzx ebx, byte [edx + 6]
mov byte [ecx + eax + 6], bl
mov edi, dword [ebp + edx*4 - 0x4b44]
mov dword [esi + eax*4 + 0x1c], edi
movzx ebx, byte [edx + 7]
mov byte [ecx + eax + 7], bl
add eax, 8
add edx, 8
mov edi, dword [esp + 0x10]
cmp eax, edi
jne 0x456058
add dword [esp + 0x14], 0xc0
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
cmp eax, edx
je 0x45613b
mov eax, dword [esp + 0x10]
jmp 0x455f59
mov edi, dword [esp + 0x28]
mov edx, dword [edi + 0x2b90]
lea ebx, [edx - 2]
mov eax, dword [edi + 0x2b94]
mov dword [esp + 0x10], eax
sub eax, 2
jmp 0x455d54
mov dword [esp + 0x2c], ecx
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x30]
add edx, 4
mov ecx, dword [esp + 0x34]
cmp edx, ecx
jne 0x455f1a
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x48]
mov eax, dword [edi + 4]
mov dword [esp + 0x38], eax
cmp eax, edx
jle 0x4563ce
mov edi, dword [esp + 0x4c]
add edi, dword [esp + 0x9c]
mov ecx, dword [esp + 0x44]
lea eax, [ecx + ecx]
add eax, eax
add eax, eax
add eax, ecx
shl eax, 6
mov ecx, dword [esp + 0x28]
add ecx, eax
add eax, 0x1320
mov dword [esp + 0x3c], eax
lea eax, [ecx + 0x1560]
mov dword [esp + 0x40], eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], esi
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + edx*4 + 0x98]
add edx, 1
mov edi, dword [ecx + edx*4 + 0x98]
mov dword [esp + 0x18], edi
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
add eax, esi
lea eax, [ecx + eax]
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x14]
add esi, eax
mov dword [esp + 0x1c], esi
mov eax, ebx
mov esi, edi
mov edi, dword [esp + 0x14]
sub esi, edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x30], edx
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0x18]
cmp dword [esp + 0x14], edx
jge 0x456397
mov ecx, dword [esp + 0x20]
add ebx, ecx
mov edx, dword [esp + 0x10]
mov ecx, ebx
sub ecx, eax
and ecx, 7
je 0x4562f4
cmp ecx, 1
je 0x4562d6
cmp ecx, 2
je 0x4562c0
cmp ecx, 3
je 0x4562aa
cmp ecx, 4
nop
je 0x456294
cmp ecx, 5
je 0x45627e
cmp ecx, 6
je 0x456268
mov ecx, edx
mov edx, dword [ebp + edx*4 - 0x4b60]
mov dword [esi + eax*4], edx
movzx edx, byte [ecx]
mov byte [esp + 0x24], dl
mov byte [edi + eax], dl
add eax, 1
lea edx, [ecx + 1]
mov ecx, dword [ebp + edx*4 - 0x4b60]
mov dword [esi + eax*4], ecx
movzx ecx, byte [edx]
mov byte [edi + eax], cl
add eax, 1
add edx, 1
mov ecx, dword [ebp + edx*4 - 0x4b60]
mov dword [esi + eax*4], ecx
movzx ecx, byte [edx]
mov byte [edi + eax], cl
add eax, 1
add edx, 1
mov ecx, dword [ebp + edx*4 - 0x4b60]
mov dword [esi + eax*4], ecx
movzx ecx, byte [edx]
mov byte [edi + eax], cl
add eax, 1
add edx, 1
mov ecx, dword [ebp + edx*4 - 0x4b60]
mov dword [esi + eax*4], ecx
movzx ecx, byte [edx]
mov byte [edi + eax], cl
add eax, 1
add edx, 1
mov ecx, dword [ebp + edx*4 - 0x4b60]
mov dword [esi + eax*4], ecx
movzx ecx, byte [edx]
mov byte [edi + eax], cl
add eax, 1
add edx, 1
mov ecx, dword [ebp + edx*4 - 0x4b60]
mov dword [esi + eax*4], ecx
movzx ecx, byte [edx]
mov byte [edi + eax], cl
add eax, 1
add edx, 1
cmp eax, ebx
je 0x456397
mov ecx, dword [ebp + edx*4 - 0x4b60]
mov dword [esi + eax*4], ecx
movzx ecx, byte [edx]
mov byte [edi + eax], cl
mov ecx, dword [ebp + edx*4 - 0x4b5c]
mov dword [esi + eax*4 + 4], ecx
movzx ecx, byte [edx + 1]
mov byte [edi + eax + 1], cl
mov ecx, dword [ebp + edx*4 - 0x4b58]
mov dword [esi + eax*4 + 8], ecx
movzx ecx, byte [edx + 2]
mov byte [edi + eax + 2], cl
mov ecx, dword [ebp + edx*4 - 0x4b54]
mov dword [esi + eax*4 + 0xc], ecx
movzx ecx, byte [edx + 3]
mov byte [edi + eax + 3], cl
mov ecx, dword [ebp + edx*4 - 0x4b50]
mov dword [esi + eax*4 + 0x10], ecx
movzx ecx, byte [edx + 4]
mov byte [edi + eax + 4], cl
mov ecx, dword [ebp + edx*4 - 0x4b4c]
mov dword [esi + eax*4 + 0x14], ecx
movzx ecx, byte [edx + 5]
mov byte [edi + eax + 5], cl
mov ecx, dword [ebp + edx*4 - 0x4b48]
mov dword [esi + eax*4 + 0x18], ecx
movzx ecx, byte [edx + 6]
mov byte [edi + eax + 6], cl
mov ecx, dword [ebp + edx*4 - 0x4b44]
mov dword [esi + eax*4 + 0x1c], ecx
movzx ecx, byte [edx + 7]
mov byte [edi + eax + 7], cl
add eax, 8
add edx, 8
cmp eax, ebx
jne 0x4562f4
add dword [esp + 0x10], 0xc0
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
cmp eax, edx
je 0x4563b2
mov eax, ebx
jmp 0x4561ff
mov edx, dword [esp + 0x30]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], esi
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
cmp edx, edi
jne 0x4561ad
add dword [esp + 0x44], 1
mov eax, dword [esp + 0x44]
add esi, 0x900
add dword [esp + 0x48], 0x28
add dword [esp + 0x4c], 0x240
mov ebx, dword [esp + 0x28]
cmp dword [ebx + 0x14], eax
jg 0x455e7e
mov esi, dword [esp + 0x28]
mov eax, dword [esi + 0x40]
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret 0x38
call method.CBitAlloShort.startup_SIG_MASK_____3__12___unsigned_char_____3__192__
sub esp, 8
mov ebx, dword [esp + 0x28]
mov ecx, dword [ebx + 0x50]
test ecx, ecx
jg 0x455d34
mov ebp, dword [ebx + 0x14]
test ebp, ebp
jle 0x4565fb
mov edx, dword [esp + 0x94]
lea edi, [edx + 4]
mov esi, dword [esp + 0x90]
add esi, 0x5c
xor ecx, ecx
mov dword [edi + 4], 0
mov dword [edi + 0xc], 1
mov dword [edi + 0x10], 2
mov dword [edi + 0x14], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 0
mov dword [esi + 0x90], 0
mov dword [esi + 0x94], 0
add ecx, 1
add edi, 0x6c
add esi, 0xf8
cmp dword [ebx + 0x14], ecx
jg 0x456440
mov eax, dword [esp + 0x28]
mov dword [eax + 0x40], 0
xor eax, eax
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret 0x38
mov edi, esi
xor eax, eax
stosb byte es:[edi], al
mov edx, edi
mov ebx, 0x8ff
test dl, 2
je 0x455e9a
mov edi, edx
xor eax, eax
stosw word es:[edi], ax
mov edx, edi
sub ebx, 2
jmp 0x455e9a
xor edx, edx
xor ebx, ebx
jmp 0x45615a