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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff6c
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [esp]
mov edx, dword [eax + 0x10]
mov dword [esp + 0xc], edx
mov ecx, dword [esp]
mov eax, dword [ecx + 0x34]
mov dword [esp + 0x10], eax
mov edx, dword [esp]
mov ecx, dword [edx + 0x38]
mov dword [esp + 0x14], ecx
mov eax, dword [esp]
mov edx, dword [eax + 0x3c]
mov dword [esp + 0x18], edx
mov ecx, dword [esp]
mov eax, dword [ecx + 0x40]
mov dword [esp + 0x1c], eax
mov edx, dword [esp]
mov ecx, dword [edx + 0x44]
mov edx, 1
mov dword [esp + 0x20], ecx
mov eax, dword [esp]
mov ecx, dword [eax + 8]
shl edx, cl
dec edx
mov dword [esp + 0x24], edx
mov edx, 1
mov eax, dword [esp]
mov ecx, dword [eax + 4]
shl edx, cl
dec edx
mov dword [esp + 0x28], edx
mov eax, dword [esp]
mov edx, dword [eax]
mov dword [esp + 0x2c], edx
mov ecx, dword [esp]
mov eax, dword [ecx + 0x14]
mov dword [esp + 0x30], eax
mov edx, dword [esp]
mov ecx, dword [edx + 0x28]
mov dword [esp + 0x34], ecx
mov eax, dword [esp]
mov edx, dword [eax + 0x24]
mov dword [esp + 0x38], edx
mov ecx, dword [esp]
mov eax, dword [ecx + 0x2c]
mov dword [esp + 0x3c], eax
xor eax, eax
mov edx, dword [esp]
mov ecx, dword [edx + 0x30]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], eax
mov edx, dword [esp]
mov ecx, dword [edx + 0x18]
mov dword [esp + 0x48], ecx
mov eax, dword [esp]
mov esi, dword [eax + 0x1c]
mov eax, dword [esp]
mov eax, dword [eax + 0x20]
mov edx, dword [esp + 0x3c]
and edx, dword [esp + 0x24]
mov dword [esp + 0x50], edx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x50]
shl ecx, 4
add edx, edx
add ecx, ecx
add ecx, dword [esp + 0xc]
add ecx, edx
cmp esi, 0x1000000
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x4c]
movzx edx, word [ecx]
jae 0x4c31af
mov ecx, dword [esp + 0x48]
shl eax, 8
movzx ecx, byte [ecx]
shl esi, 8
or eax, ecx
inc dword [esp + 0x48]
mov ecx, esi
shr ecx, 0xb
imul ecx, edx
cmp ecx, eax
jbe 0x4c33dd
mov esi, ecx
mov ecx, 0x800
sub ecx, edx
shr ecx, 5
add cx, dx
mov edx, dword [esp + 0x4c]
mov word [edx], cx
mov edx, dword [esp + 0xc]
add edx, 0xe6c
mov dword [esp + 0x4c], edx
cmp dword [esp + 0x40], 0
jne 0x4c31f1
cmp dword [esp + 0x3c], 0
je 0x4c3232
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x3c]
and edx, dword [esp + 0x28]
shl edx, cl
mov ecx, 8
sub ecx, dword [esp + 0x2c]
cmp dword [esp + 0x38], 0
jne 0x4c3215
mov ebx, dword [esp + 0x34]
jmp 0x4c3219
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x30]
movzx ebx, byte [edi + ebx - 1]
sar ebx, cl
add edx, ebx
shl edx, 8
lea edx, [edx + edx*2]
add edx, edx
add dword [esp + 0x4c], edx
cmp dword [esp + 0x10], 7
jae 0x4c32c7
cmp dword [esp + 0x10], 4
jae 0x4c324a
mov ecx, dword [esp + 0x10]
jmp 0x4c324f
mov ecx, 3
sub dword [esp + 0x10], ecx
mov edi, 1
mov edx, dword [esp + 0x4c]
movzx edx, word [edx + edi*2]
cmp esi, 0x1000000
jae 0x4c327b
mov ecx, dword [esp + 0x48]
shl eax, 8
movzx ecx, byte [ecx]
shl esi, 8
or eax, ecx
inc dword [esp + 0x48]
mov ecx, esi
shr ecx, 0xb
imul ecx, edx
cmp ecx, eax
jbe 0x4c32a2
mov ebx, 0x800
mov esi, ecx
sub ebx, edx
mov ecx, dword [esp + 0x4c]
shr ebx, 5
add bx, dx
mov word [ecx + edi*2], bx
add edi, edi
jmp 0x4c32ba
sub esi, ecx
sub eax, ecx
mov ecx, edx
shr ecx, 5
sub dx, cx
mov ecx, dword [esp + 0x4c]
mov word [ecx + edi*2], dx
lea edi, [edi + edi + 1]
cmp edi, 0x100
jb 0x4c3258
jmp 0x4c33be
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x38]
sub edx, dword [esp + 0x14]
cmp ecx, dword [esp + 0x14]
jae 0x4c32df
mov ecx, dword [esp + 0x34]
jmp 0x4c32e1
xor ecx, ecx
add edx, ecx
mov ecx, dword [esp]
mov ecx, dword [ecx + 0x14]
movzx edx, byte [ecx + edx]
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], pe_nt_image_headers32
cmp dword [esp + 0x10], 0xa
jae 0x4c3307
mov edx, 3
jmp 0x4c330c
mov edx, 6
sub dword [esp + 0x10], edx
mov edi, 1
shl dword [esp + 0x54], 1
mov edx, dword [esp + 0x54]
and edx, dword [esp + 0x58]
mov dword [esp + 0x5c], edx
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
add ecx, ecx
add edx, edx
add ecx, dword [esp + 0x4c]
add ecx, edx
mov edx, edi
add edx, edx
add ecx, edx
cmp esi, 0x1000000
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x60]
movzx edx, word [ecx]
jae 0x4c3363
mov ecx, dword [esp + 0x48]
shl eax, 8
movzx ecx, byte [ecx]
shl esi, 8
or eax, ecx
inc dword [esp + 0x48]
mov ecx, esi
shr ecx, 0xb
imul ecx, edx
cmp ecx, eax
jbe 0x4c3393
mov esi, ecx
mov ecx, 0x800
sub ecx, edx
shr ecx, 5
add cx, dx
mov edx, dword [esp + 0x60]
mov word [edx], cx
add edi, edi
mov edx, dword [esp + 0x5c]
not edx
and dword [esp + 0x58], edx
jmp 0x4c33b2
sub esi, ecx
sub eax, ecx
mov ecx, edx
shr ecx, 5
sub dx, cx
mov ecx, dword [esp + 0x60]
mov word [ecx], dx
lea edi, [edi + edi + 1]
mov edx, dword [esp + 0x5c]
and dword [esp + 0x58], edx
cmp edi, 0x100
jb 0x4c3315
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x38]
mov ebx, edi
mov byte [ecx + edx], bl
inc dword [esp + 0x38]
inc dword [esp + 0x3c]
jmp 0x4c3ff0
sub esi, ecx
sub eax, ecx
mov ecx, edx
shr ecx, 5
sub dx, cx
mov ecx, dword [esp + 0x4c]
mov word [ecx], dx
mov edx, dword [esp + 0x10]
add edx, edx
add edx, dword [esp + 0xc]
add edx, 0x180
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x4c]
movzx edx, word [edx]
cmp esi, 0x1000000
jae 0x4c3426
mov ecx, dword [esp + 0x48]
shl eax, 8
movzx ecx, byte [ecx]
shl esi, 8
or eax, ecx
inc dword [esp + 0x48]
mov ecx, esi
shr ecx, 0xb
imul ecx, edx
cmp ecx, eax
jbe 0x4c3460
mov esi, ecx
mov ecx, 0x800
sub ecx, edx
shr ecx, 5
add cx, dx
mov edx, dword [esp + 0x4c]
mov word [edx], cx
add dword [esp + 0x10], 0xc
mov edx, dword [esp + 0xc]
add edx, 0x664
mov dword [esp + 0x4c], edx
jmp 0x4c3701
sub esi, ecx
sub eax, ecx
mov ecx, edx
shr ecx, 5
sub dx, cx
mov ecx, dword [esp + 0x4c]
mov word [ecx], dx
cmp dword [esp + 0x40], 0
jne 0x4c348b
cmp dword [esp + 0x3c], 0
jne 0x4c348b
mov eax, 1
jmp 0x4c408c
mov edx, dword [esp + 0x10]
add edx, edx
add edx, dword [esp + 0xc]
add edx, 0x198
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x4c]
movzx edx, word [edx]
cmp esi, 0x1000000
jae 0x4c34c1
mov ecx, dword [esp + 0x48]
shl eax, 8
movzx ecx, byte [ecx]
shl esi, 8
or eax, ecx
inc dword [esp + 0x48]
mov ecx, esi
shr ecx, 0xb
imul ecx, edx
cmp ecx, eax
jbe 0x4c35b4
mov esi, ecx
mov ecx, 0x800
sub ecx, edx
shr ecx, 5
add cx, dx
mov edx, dword [esp + 0x4c]
mov word [edx], cx
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x50]
shl edx, 4
add ecx, ecx
add edx, edx
add edx, dword [esp + 0xc]
add edx, ecx
add edx, 0x1e0
cmp esi, 0x1000000
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x4c]
movzx edx, word [edx]
jae 0x4c3528
mov ecx, dword [esp + 0x48]
shl eax, 8
movzx ecx, byte [ecx]
shl esi, 8
or eax, ecx
inc dword [esp + 0x48]
mov ecx, esi
shr ecx, 0xb
imul ecx, edx
cmp ecx, eax
jbe 0x4c359c
mov esi, ecx
mov ecx, 0x800
sub ecx, edx
shr ecx, 5
add cx, dx
mov edx, dword [esp + 0x4c]
mov word [edx], cx
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x38]
sub edx, dword [esp + 0x14]
cmp ecx, dword [esp + 0x14]
jae 0x4c3562
mov ecx, dword [esp + 0x34]
jmp 0x4c3564
xor ecx, ecx
add edx, ecx
mov ecx, dword [esp + 0x30]
mov dl, byte [ecx + edx]
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x38]
mov byte [ecx + ebx], dl
inc dword [esp + 0x38]
inc dword [esp + 0x3c]
cmp dword [esp + 0x10], 7
jae 0x4c358e
mov edx, 9
jmp 0x4c3593
mov edx, 0xb
mov dword [esp + 0x10], edx
jmp 0x4c3ff0
sub esi, ecx
sub eax, ecx
mov ecx, edx
shr ecx, 5
sub dx, cx
mov ecx, dword [esp + 0x4c]
mov word [ecx], dx
jmp 0x4c36dc
sub esi, ecx
sub eax, ecx
mov ecx, edx
shr ecx, 5
sub dx, cx
mov ecx, dword [esp + 0x4c]
mov word [ecx], dx
mov edx, dword [esp + 0x10]
add edx, edx
add edx, dword [esp + 0xc]
add edx, 0x1b0
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x4c]
movzx edx, word [edx]
cmp esi, 0x1000000
jae 0x4c35fd
mov ecx, dword [esp + 0x48]
shl eax, 8
movzx ecx, byte [ecx]
shl esi, 8
or eax, ecx
inc dword [esp + 0x48]
mov ecx, esi
shr ecx, 0xb
imul ecx, edx
cmp ecx, eax
jbe 0x4c362c
mov esi, ecx
mov ecx, 0x800
sub ecx, edx
shr ecx, 5
add cx, dx
mov edx, dword [esp + 0x4c]
mov word [edx], cx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x64], edx
jmp 0x4c36cc
sub esi, ecx
sub eax, ecx
mov ecx, edx
shr ecx, 5
sub dx, cx
mov ecx, dword [esp + 0x4c]
mov word [ecx], dx
mov edx, dword [esp + 0x10]
add edx, edx
add edx, dword [esp + 0xc]
add edx, 0x1c8
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x4c]
movzx edx, word [edx]
cmp esi, 0x1000000
jae 0x4c3675
mov ecx, dword [esp + 0x48]
shl eax, 8
movzx ecx, byte [ecx]
shl esi, 8
or eax, ecx
inc dword [esp + 0x48]
mov ecx, esi
shr ecx, 0xb
imul ecx, edx
cmp ecx, eax
jbe 0x4c36a1
mov esi, ecx
mov ecx, 0x800
sub ecx, edx
shr ecx, 5
add cx, dx
mov edx, dword [esp + 0x4c]
mov word [edx], cx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x64], edx
jmp 0x4c36c4
sub esi, ecx
sub eax, ecx
mov ecx, edx
shr ecx, 5
sub dx, cx
mov ecx, dword [esp + 0x4c]
mov word [ecx], dx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x20], edx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], edx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x14], ecx
cmp dword [esp + 0x10], 7
jae 0x4c36ea
mov edx, 8
jmp 0x4c36ef
mov edx, 0xb
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0xc]
add ecx, 0xa68
mov dword [esp + 0x4c], ecx
mov ebx, dword [esp + 0x4c]
movzx edx, word [ebx]
cmp esi, 0x1000000
jae 0x4c3723
mov ecx, dword [esp + 0x48]
shl eax, 8
movzx ecx, byte [ecx]
shl esi, 8
or eax, ecx
inc dword [esp + 0x48]
mov ecx, esi
shr ecx, 0xb
imul ecx, edx
cmp ecx, eax
jbe 0x4c3764
mov esi, ecx
mov ecx, 0x800
sub ecx, edx
shr ecx, 5
add cx, dx
mov word [ebx], cx
mov ebx, dword [esp + 0x50]
shl ebx, 3
add ebx, ebx
add ebx, dword [esp + 0x4c]
add ebx, 4
xor edx, edx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x68], 8
jmp 0x4c3804
sub esi, ecx
sub eax, ecx
mov ecx, edx
shr ecx, 5
sub dx, cx
mov word [ebx], dx
mov ebx, dword [esp + 0x4c]
add ebx, 2
movzx edx, word [ebx]
cmp esi, 0x1000000
jae 0x4c3798
mov ecx, dword [esp + 0x48]
shl eax, 8
movzx ecx, byte [ecx]
shl esi, 8
or eax, ecx
inc dword [esp + 0x48]
mov ecx, esi
shr ecx, 0xb
imul ecx, edx
cmp ecx, eax
jbe 0x4c37db
mov esi, ecx
mov ecx, 0x800
sub ecx, edx
shr ecx, 5
add cx, dx
mov word [ebx], cx
mov ebx, dword [esp + 0x50]
shl ebx, 3
add ebx, ebx
add ebx, dword [esp + 0x4c]
mov dword [esp + 0x6c], 8
mov dword [esp + 0x68], 8
add ebx, 0x104
jmp 0x4c3804
sub esi, ecx
sub eax, ecx
mov ecx, edx
shr ecx, 5
sub dx, cx
mov word [ebx], dx
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x6c], 0x10
mov dword [esp + 0x68], pe_nt_image_headers32
add ebx, 0x204
mov dword [esp + 0x44], 1
mov edx, dword [esp + 0x44]
movzx edx, word [ebx + edx*2]
cmp esi, 0x1000000
jae 0x4c382f
mov ecx, dword [esp + 0x48]
shl eax, 8
movzx ecx, byte [ecx]
shl esi, 8
or eax, ecx
inc dword [esp + 0x48]
mov ecx, esi
shr ecx, 0xb
imul ecx, edx
cmp ecx, eax
jbe 0x4c385c
mov edi, 0x800
mov esi, ecx
sub edi, edx
mov ecx, dword [esp + 0x44]
shr edi, 5
add di, dx
mov word [ebx + ecx*2], di
mov edx, dword [esp + 0x44]
add dword [esp + 0x44], edx
jmp 0x4c387d
sub esi, ecx
sub eax, ecx
mov ecx, edx
shr ecx, 5
sub dx, cx
mov ecx, dword [esp + 0x44]
mov word [ebx + ecx*2], dx
mov edx, dword [esp + 0x44]
add edx, dword [esp + 0x44]
inc edx
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x44]
cmp edx, dword [esp + 0x68]
jb 0x4c380c
mov ecx, dword [esp + 0x68]
sub dword [esp + 0x44], ecx
mov edx, dword [esp + 0x6c]
add dword [esp + 0x44], edx
cmp dword [esp + 0x10], 0xc
jb 0x4c3f25
cmp dword [esp + 0x44], 4
jae 0x4c38af
mov ecx, dword [esp + 0x44]
jmp 0x4c38b4
mov ecx, 3
shl ecx, 6
add ecx, ecx
add ecx, dword [esp + 0xc]
add ecx, 0x360
mov dword [esp + 0x4c], ecx
mov edi, 1
mov edx, dword [esp + 0x4c]
movzx edx, word [edx + edi*2]
cmp esi, 0x1000000
jae 0x4c38ef
mov ecx, dword [esp + 0x48]
shl eax, 8
movzx ecx, byte [ecx]
shl esi, 8
or eax, ecx
inc dword [esp + 0x48]
mov ecx, esi
shr ecx, 0xb
imul ecx, edx
cmp ecx, eax
jbe 0x4c3916
mov ebx, 0x800
mov esi, ecx
sub ebx, edx
mov ecx, dword [esp + 0x4c]
shr ebx, 5
add bx, dx
mov word [ecx + edi*2], bx
add edi, edi
jmp 0x4c392e
sub esi, ecx
sub eax, ecx
mov ecx, edx
shr ecx, 5
sub dx, cx
mov ecx, dword [esp + 0x4c]
mov word [ecx + edi*2], dx
lea edi, [edi + edi + 1]
mov edx, dword [esp + 0x4c]
movzx edx, word [edx + edi*2]
cmp esi, 0x1000000
jae 0x4c3951
mov ecx, dword [esp + 0x48]
shl eax, 8
movzx ecx, byte [ecx]
shl esi, 8
or eax, ecx
inc dword [esp + 0x48]
mov ecx, esi
shr ecx, 0xb
imul ecx, edx
cmp ecx, eax
jbe 0x4c3978
mov ebx, 0x800
mov esi, ecx
sub ebx, edx
mov ecx, dword [esp + 0x4c]
shr ebx, 5
add bx, dx
mov word [ecx + edi*2], bx
add edi, edi
jmp 0x4c3990
sub esi, ecx
sub eax, ecx
mov ecx, edx
shr ecx, 5
sub dx, cx
mov ecx, dword [esp + 0x4c]
mov word [ecx + edi*2], dx
lea edi, [edi + edi + 1]
mov edx, dword [esp + 0x4c]
movzx edx, word [edx + edi*2]
cmp esi, 0x1000000
jae 0x4c39b3
mov ecx, dword [esp + 0x48]
shl eax, 8
movzx ecx, byte [ecx]
shl esi, 8
or eax, ecx
inc dword [esp + 0x48]
mov ecx, esi
shr ecx, 0xb
imul ecx, edx
cmp ecx, eax
jbe 0x4c39da
mov ebx, 0x800
mov esi, ecx
sub ebx, edx
mov ecx, dword [esp + 0x4c]
shr ebx, 5
add bx, dx
mov word [ecx + edi*2], bx
add edi, edi
jmp 0x4c39f2
sub esi, ecx
sub eax, ecx
mov ecx, edx
shr ecx, 5
sub dx, cx
mov ecx, dword [esp + 0x4c]
mov word [ecx + edi*2], dx
lea edi, [edi + edi + 1]
mov edx, dword [esp + 0x4c]
movzx edx, word [edx + edi*2]
cmp esi, 0x1000000
jae 0x4c3a15
mov ecx, dword [esp + 0x48]
shl eax, 8
movzx ecx, byte [ecx]
shl esi, 8
or eax, ecx
inc dword [esp + 0x48]
mov ecx, esi
shr ecx, 0xb
imul ecx, edx
cmp ecx, eax
jbe 0x4c3a3c
mov ebx, 0x800
mov esi, ecx
sub ebx, edx
mov ecx, dword [esp + 0x4c]
shr ebx, 5
add bx, dx
mov word [ecx + edi*2], bx
add edi, edi
jmp 0x4c3a54
sub esi, ecx
sub eax, ecx
mov ecx, edx
shr ecx, 5
sub dx, cx
mov ecx, dword [esp + 0x4c]
mov word [ecx + edi*2], dx
lea edi, [edi + edi + 1]
mov edx, dword [esp + 0x4c]
movzx edx, word [edx + edi*2]
cmp esi, 0x1000000
jae 0x4c3a77
mov ecx, dword [esp + 0x48]
shl eax, 8
movzx ecx, byte [ecx]
shl esi, 8
or eax, ecx
inc dword [esp + 0x48]
mov ecx, esi
shr ecx, 0xb
imul ecx, edx
cmp ecx, eax
jbe 0x4c3a9e
mov ebx, 0x800
mov esi, ecx
sub ebx, edx
mov ecx, dword [esp + 0x4c]
shr ebx, 5
add bx, dx
mov word [ecx + edi*2], bx
add edi, edi
jmp 0x4c3ab6
sub esi, ecx
sub eax, ecx
mov ecx, edx
shr ecx, 5
sub dx, cx
mov ecx, dword [esp + 0x4c]
mov word [ecx + edi*2], dx
lea edi, [edi + edi + 1]
mov edx, dword [esp + 0x4c]
movzx edx, word [edx + edi*2]
cmp esi, 0x1000000
jae 0x4c3ad9
mov ecx, dword [esp + 0x48]
shl eax, 8
movzx ecx, byte [ecx]
shl esi, 8
or eax, ecx
inc dword [esp + 0x48]
mov ecx, esi
shr ecx, 0xb
imul ecx, edx
cmp ecx, eax
jbe 0x4c3b00
mov ebx, 0x800
mov esi, ecx
sub ebx, edx
mov ecx, dword [esp + 0x4c]
shr ebx, 5
add bx, dx
mov word [ecx + edi*2], bx
add edi, edi
jmp 0x4c3b18
sub esi, ecx
sub eax, ecx
mov ecx, edx
shr ecx, 5
sub dx, cx
mov ecx, dword [esp + 0x4c]
mov word [ecx + edi*2], dx
lea edi, [edi + edi + 1]
sub edi, 0x40
cmp edi, 4
jb 0x4c3ec8
mov edx, edi
mov dword [esp + 0x70], edi
shr edx, 1
and edi, 1
dec edx
or edi, 2
mov dword [esp + 0x74], edx
cmp dword [esp + 0x70], 0xe
jae 0x4c3c09
mov ecx, dword [esp + 0x74]
shl edi, cl
mov edx, edi
mov ecx, dword [esp + 0x70]
add edx, edx
add ecx, ecx
add edx, dword [esp + 0xc]
add edx, 0x560
sub edx, ecx
add edx, 0xfffffffe
mov dword [esp + 0x4c], edx
mov dword [esp + 0x78], 1
mov dword [esp + 0x7c], 1
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x7c]
movzx edx, word [edx + ecx*2]
cmp esi, 0x1000000
jae 0x4c3b9c
mov ecx, dword [esp + 0x48]
shl eax, 8
movzx ecx, byte [ecx]
shl esi, 8
or eax, ecx
inc dword [esp + 0x48]
mov ecx, esi
shr ecx, 0xb
imul ecx, edx
cmp ecx, eax
jbe 0x4c3bcd
mov ebp, 0x800
mov esi, ecx
sub ebp, edx
mov ecx, dword [esp + 0x4c]
shr ebp, 5
mov ebx, dword [esp + 0x7c]
add bp, dx
mov word [ecx + ebx*2], bp
mov edx, dword [esp + 0x7c]
add dword [esp + 0x7c], edx
jmp 0x4c3bf6
sub esi, ecx
sub eax, ecx
mov ecx, edx
mov ebx, dword [esp + 0x7c]
shr ecx, 5
sub dx, cx
mov ecx, dword [esp + 0x4c]
mov word [ecx + ebx*2], dx
mov edx, dword [esp + 0x7c]
add edx, dword [esp + 0x7c]
inc edx
mov dword [esp + 0x7c], edx
or edi, dword [esp + 0x78]
shl dword [esp + 0x78], 1
dec dword [esp + 0x74]
jne 0x4c3b75
jmp 0x4c3ec8
sub dword [esp + 0x74], 4
cmp esi, 0x1000000
jae 0x4c3c2a
mov ecx, dword [esp + 0x48]
xor edx, edx
shl eax, 8
shl esi, 8
mov dl, byte [ecx]
or eax, edx
inc dword [esp + 0x48]
shr esi, 1
sub eax, esi
xor edx, edx
mov ecx, eax
add edi, edi
shr ecx, 0x1f
sub edx, ecx
mov dword [esp + 0x80], edx
add edi, dword [esp + 0x80]
mov ecx, dword [esp + 0x80]
and ecx, esi
inc edi
add eax, ecx
dec dword [esp + 0x74]
jne 0x4c3c0e
mov edx, dword [esp + 0xc]
add edx, 0x644
shl edi, 4
mov dword [esp + 0x4c], edx
mov dword [esp + 0x84], 1
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x84]
movzx edx, word [ecx + edx*2]
cmp esi, 0x1000000
jae 0x4c3c9f
mov ecx, dword [esp + 0x48]
shl eax, 8
movzx ecx, byte [ecx]
shl esi, 8
or eax, ecx
inc dword [esp + 0x48]
mov ecx, esi
shr ecx, 0xb
imul ecx, edx
cmp ecx, eax
jbe 0x4c3cd9
mov ebp, 0x800
mov esi, ecx
sub ebp, edx
mov ecx, dword [esp + 0x4c]
shr ebp, 5
mov ebx, dword [esp + 0x84]
add bp, dx
mov word [ecx + ebx*2], bp
mov edx, dword [esp + 0x84]
add dword [esp + 0x84], edx
jmp 0x4c3d0d
sub esi, ecx
sub eax, ecx
mov ecx, edx
mov ebx, dword [esp + 0x84]
shr ecx, 5
sub dx, cx
mov ecx, dword [esp + 0x4c]
mov word [ecx + ebx*2], dx
mov edx, dword [esp + 0x84]
add edx, dword [esp + 0x84]
inc edx
or edi, 1
mov dword [esp + 0x84], edx
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x84]
movzx edx, word [ecx + edx*2]
cmp esi, 0x1000000
jae 0x4c3d37
mov ecx, dword [esp + 0x48]
shl eax, 8
movzx ecx, byte [ecx]
shl esi, 8
or eax, ecx
inc dword [esp + 0x48]
mov ecx, esi
shr ecx, 0xb
imul ecx, edx
cmp ecx, eax
jbe 0x4c3d71
mov ebp, 0x800
mov esi, ecx
sub ebp, edx
mov ecx, dword [esp + 0x4c]
shr ebp, 5
mov ebx, dword [esp + 0x84]
add bp, dx
mov word [ecx + ebx*2], bp
mov edx, dword [esp + 0x84]
add dword [esp + 0x84], edx
jmp 0x4c3da5
sub esi, ecx
sub eax, ecx
mov ecx, edx
mov ebx, dword [esp + 0x84]
shr ecx, 5
sub dx, cx
mov ecx, dword [esp + 0x4c]
mov word [ecx + ebx*2], dx
mov edx, dword [esp + 0x84]
add edx, dword [esp + 0x84]
inc edx
or edi, 2
mov dword [esp + 0x84], edx
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x84]
movzx edx, word [ecx + edx*2]
cmp esi, 0x1000000
jae 0x4c3dcf
mov ecx, dword [esp + 0x48]
shl eax, 8
movzx ecx, byte [ecx]
shl esi, 8
or eax, ecx
inc dword [esp + 0x48]
mov ecx, esi
shr ecx, 0xb
imul ecx, edx
cmp ecx, eax
jbe 0x4c3e09
mov ebp, 0x800
mov esi, ecx
sub ebp, edx
mov ecx, dword [esp + 0x4c]
shr ebp, 5
mov ebx, dword [esp + 0x84]
add bp, dx
mov word [ecx + ebx*2], bp
mov edx, dword [esp + 0x84]
add dword [esp + 0x84], edx
jmp 0x4c3e3d
sub esi, ecx
sub eax, ecx
mov ecx, edx
mov ebx, dword [esp + 0x84]
shr ecx, 5
sub dx, cx
mov ecx, dword [esp + 0x4c]
mov word [ecx + ebx*2], dx
mov edx, dword [esp + 0x84]
add edx, dword [esp + 0x84]
inc edx
or edi, 4
mov dword [esp + 0x84], edx
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x84]
movzx edx, word [ecx + edx*2]
cmp esi, 0x1000000
jae 0x4c3e67
mov ecx, dword [esp + 0x48]
shl eax, 8
movzx ecx, byte [ecx]
shl esi, 8
or eax, ecx
inc dword [esp + 0x48]
mov ecx, esi
shr ecx, 0xb
imul ecx, edx
cmp ecx, eax
jbe 0x4c3e93
mov ebp, 0x800
mov esi, ecx
sub ebp, edx
mov ecx, dword [esp + 0x4c]
shr ebp, 5
mov ebx, dword [esp + 0x84]
add bp, dx
mov word [ecx + ebx*2], bp
jmp 0x4c3eb1
sub esi, ecx
sub eax, ecx
mov ecx, edx
mov ebx, dword [esp + 0x84]
shr ecx, 5
sub dx, cx
mov ecx, dword [esp + 0x4c]
or edi, 8
mov word [ecx + ebx*2], dx
cmp edi, 0xffffffff
jne 0x4c3ec8
add dword [esp + 0x44], 0x112
sub dword [esp + 0x10], 0xc
jmp 0x4c4008
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x20], edx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], ecx
lea ecx, [edi + 1]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ecx
cmp dword [esp + 0x40], 0
jne 0x4c3efe
cmp edi, dword [esp + 0x3c]
jb 0x4c3f0e
mov eax, 1
jmp 0x4c408c
cmp edi, dword [esp + 0x40]
jb 0x4c3f0e
mov eax, 1
jmp 0x4c408c
cmp dword [esp + 0x10], 0x13
jae 0x4c3f1c
mov edx, 7
jmp 0x4c3f21
mov edx, 0xa
mov dword [esp + 0x10], edx
add dword [esp + 0x44], 2
mov ecx, dword [esp + 4]
cmp ecx, dword [esp + 0x38]
jne 0x4c3f3e
mov eax, 1
jmp 0x4c408c
mov edx, dword [esp + 4]
sub edx, dword [esp + 0x38]
mov dword [esp + 0x88], edx
mov ecx, dword [esp + 0x88]
cmp ecx, dword [esp + 0x44]
jae 0x4c3f63
mov edx, dword [esp + 0x88]
jmp 0x4c3f67
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x38]
mov ebx, dword [esp + 0x38]
sub ecx, dword [esp + 0x14]
cmp ebx, dword [esp + 0x14]
jae 0x4c3f7f
mov ebx, dword [esp + 0x34]
jmp 0x4c3f81
xor ebx, ebx
add ecx, ebx
add dword [esp + 0x3c], edx
sub dword [esp + 0x44], edx
lea ebx, [edx + ecx]
cmp ebx, dword [esp + 0x34]
ja 0x4c3fce
mov edi, dword [esp + 0x30]
add edi, dword [esp + 0x38]
sub ecx, dword [esp + 0x38]
mov dword [esp + 0x8c], ecx
mov ecx, edx
add ecx, edi
mov dword [esp + 0x90], ecx
add dword [esp + 0x38], edx
mov edx, dword [esp + 0x8c]
mov dl, byte [edi + edx]
mov byte [edi], dl
inc edi
cmp edi, dword [esp + 0x90]
jne 0x4c3fb6
jmp 0x4c3ff0
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x30]
mov ebp, dword [esp + 0x38]
mov bl, byte [ebx + ecx]
inc ecx
mov byte [edi + ebp], bl
inc dword [esp + 0x38]
cmp ecx, dword [esp + 0x34]
jne 0x4c3fed
xor ecx, ecx
dec edx
jne 0x4c3fce
mov edx, dword [esp + 0x38]
cmp edx, dword [esp + 4]
jae 0x4c4008
mov edx, dword [esp + 0x48]
cmp edx, dword [esp + 8]
jb 0x4c3168
cmp esi, 0x1000000
jae 0x4c4024
mov ecx, dword [esp + 0x48]
xor edx, edx
shl eax, 8
shl esi, 8
mov dl, byte [ecx]
or eax, edx
inc dword [esp + 0x48]
mov ecx, dword [esp]
mov edx, dword [esp + 0x48]
mov dword [ecx + 0x18], edx
mov ecx, dword [esp]
mov dword [ecx + 0x1c], esi
mov edx, dword [esp]
mov dword [edx + 0x20], eax
mov eax, dword [esp]
mov ecx, dword [esp + 0x44]
mov dword [eax + 0x48], ecx
mov eax, dword [esp]
mov edx, dword [esp + 0x38]
mov dword [eax + 0x24], edx
mov ecx, dword [esp]
mov eax, dword [esp + 0x3c]
mov dword [ecx + 0x2c], eax
mov edx, dword [esp]
mov ecx, dword [esp + 0x14]
mov dword [edx + 0x38], ecx
mov eax, dword [esp]
mov edx, dword [esp + 0x18]
mov dword [eax + 0x3c], edx
mov ecx, dword [esp]
mov eax, dword [esp + 0x1c]
mov dword [ecx + 0x40], eax
mov edx, dword [esp]
mov ecx, dword [esp + 0x20]
mov dword [edx + 0x44], ecx
mov eax, dword [esp]
mov edx, dword [esp + 0x10]
mov dword [eax + 0x34], edx
xor eax, eax
add esp, 0x94
pop ebp
pop edi
pop esi
pop ebx
ret