Function at 0x4ba114
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 0x4ba227
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 0x4ba455
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 0x4ba269
cmp dword [esp + 0x3c], 0
je 0x4ba2aa
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 0x4ba28d
mov ebx, dword [esp + 0x34]
jmp 0x4ba291
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 0x4ba33f
cmp dword [esp + 0x10], 4
jae 0x4ba2c2
mov ecx, dword [esp + 0x10]
jmp 0x4ba2c7
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 0x4ba2f3
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 0x4ba31a
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 0x4ba332
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 0x4ba2d0
jmp 0x4ba436
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x38]
sub edx, dword [esp + 0x14]
cmp ecx, dword [esp + 0x14]
jae 0x4ba357
mov ecx, dword [esp + 0x34]
jmp 0x4ba359
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 0x4ba37f
mov edx, 3
jmp 0x4ba384
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 0x4ba3db
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 0x4ba40b
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 0x4ba42a
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 0x4ba38d
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 0x4bb068
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 0x4ba49e
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 0x4ba4d8
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 0x4ba779
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 0x4ba503
cmp dword [esp + 0x3c], 0
jne 0x4ba503
mov eax, 1
jmp 0x4bb104
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 0x4ba539
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 0x4ba62c
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 0x4ba5a0
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 0x4ba614
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 0x4ba5da
mov ecx, dword [esp + 0x34]
jmp 0x4ba5dc
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 0x4ba606
mov edx, 9
jmp 0x4ba60b
mov edx, 0xb
mov dword [esp + 0x10], edx
jmp 0x4bb068
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 0x4ba754
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 0x4ba675
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 0x4ba6a4
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 0x4ba744
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 0x4ba6ed
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 0x4ba719
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 0x4ba73c
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 0x4ba762
mov edx, 8
jmp 0x4ba767
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 0x4ba79b
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 0x4ba7dc
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 0x4ba87c
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 0x4ba810
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 0x4ba853
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 0x4ba87c
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 0x4ba8a7
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 0x4ba8d4
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 0x4ba8f5
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 0x4ba884
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 0x4baf9d
cmp dword [esp + 0x44], 4
jae 0x4ba927
mov ecx, dword [esp + 0x44]
jmp 0x4ba92c
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 0x4ba967
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 0x4ba98e
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 0x4ba9a6
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 0x4ba9c9
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 0x4ba9f0
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 0x4baa08
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 0x4baa2b
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 0x4baa52
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 0x4baa6a
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 0x4baa8d
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 0x4baab4
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 0x4baacc
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 0x4baaef
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 0x4bab16
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 0x4bab2e
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 0x4bab51
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 0x4bab78
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 0x4bab90
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 0x4baf40
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 0x4bac81
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 0x4bac14
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 0x4bac45
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 0x4bac6e
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 0x4babed
jmp 0x4baf40
sub dword [esp + 0x74], 4
cmp esi, 0x1000000
jae 0x4baca2
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 0x4bac86
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 0x4bad17
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 0x4bad51
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 0x4bad85
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 0x4badaf
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 0x4bade9
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 0x4bae1d
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 0x4bae47
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 0x4bae81
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 0x4baeb5
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 0x4baedf
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 0x4baf0b
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 0x4baf29
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 0x4baf40
add dword [esp + 0x44], 0x112
sub dword [esp + 0x10], 0xc
jmp 0x4bb080
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 0x4baf76
cmp edi, dword [esp + 0x3c]
jb 0x4baf86
mov eax, 1
jmp 0x4bb104
cmp edi, dword [esp + 0x40]
jb 0x4baf86
mov eax, 1
jmp 0x4bb104
cmp dword [esp + 0x10], 0x13
jae 0x4baf94
mov edx, 7
jmp 0x4baf99
mov edx, 0xa
mov dword [esp + 0x10], edx
add dword [esp + 0x44], 2
mov ecx, dword [esp + 4]
cmp ecx, dword [esp + 0x38]
jne 0x4bafb6
mov eax, 1
jmp 0x4bb104
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 0x4bafdb
mov edx, dword [esp + 0x88]
jmp 0x4bafdf
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 0x4baff7
mov ebx, dword [esp + 0x34]
jmp 0x4baff9
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 0x4bb046
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 0x4bb02e
jmp 0x4bb068
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 0x4bb065
xor ecx, ecx
dec edx
jne 0x4bb046
mov edx, dword [esp + 0x38]
cmp edx, dword [esp + 4]
jae 0x4bb080
mov edx, dword [esp + 0x48]
cmp edx, dword [esp + 8]
jb 0x4ba1e0
cmp esi, 0x1000000
jae 0x4bb09c
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