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

Disassembly:
push esi
push edi
push ebp
push ebx
sub esp, 0x130
mov ecx, esp
and esp, 0xffffffe0
mov dword [esp + 0xe4], ecx
nop
mov eax, dword [ecx + 0x144]
mov ebx, dword [ecx + 0x148]
mov dword [esp + 0x10c], eax
mov dword [esp + 0x110], ebx
mov eax, dword [ecx + 0x14c]
mov ebx, dword [ecx + 0x150]
mov dword [esp + 0x114], eax
mov dword [esp + 0x118], ebx
mov eax, dword [ecx + 0x154]
mov ebx, dword [ecx + 0x158]
mov dword [esp + 0x120], eax
mov dword [esp + 0x124], ebx
mov eax, dword [ecx + 0x15c]
mov ebx, dword [ecx + 0x160]
mov dword [esp + 0x128], eax
mov dword [esp + 0x12c], ebx
mov ebp, dword [esp + 0x10c]
mov edx, 0x800
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 4]
mov dword [esp + 0xf0], ebx
mov dword [esp + 0xf4], eax
mov dword [esp + 0xe0], edx
add eax, 3
mov ebx, dword [ebp]
shr eax, 2
mov dword [esp + 0x104], ebx
mov dword [esp + 0x100], eax
lea ebx, [0x100316a0]
mov eax, dword [esp + 0xf4]
lea esi, [0x100157c0]
add eax, 7
shr eax, 3
mov dword [esp + 0xec], ebx
shl eax, 3
mov dword [esp + 0xf8], eax
xor ecx, ecx
mov eax, dword [esi + ecx*4]
mov ebx, dword [esi + ecx*4 + 4]
mov dword [esp + ecx*4 + 0xa0], eax
mov dword [esp + ecx*4 + 0xa4], ebx
add ecx, 2
cmp ecx, 0x10
jl 0x10004029
mov ebp, dword [esp + 0x110]
xor ebx, ebx
mov eax, dword [esp + 0x100]
mov dword [esp + 0x108], ebx
mov bl, byte [ebp + 0x29]
mov dword [esp + 0xfc], eax
mov byte [esp + 0xe8], bl
mov esi, dword [esp + 0x114]
mov edx, dword [esp + 0x104]
mov dword [esp + 0x11c], esi
cmp edx, 4
jg 0x100040d9
mov ebx, 4
mov esi, dword [esp + 0x114]
sub ebx, edx
mov ebp, dword [esp + 0x128]
add esi, dword [esp + 0x108]
mov dword [esp + 0x114], ebp
mov eax, dword [esp + 0xf4]
xor edi, edi
mov cl, byte [esi]
dec eax
mov byte [edi + ebp], cl
inc esi
inc edi
cmp eax, 0
jg 0x100040b4
dec edx
mov eax, dword [esp + 0xf4]
cmp edx, 0
jne 0x100040b4
cmp ebx, 0
je 0x100040d9
sub esi, eax
dec ebx
inc edx
jmp 0x100040b4
mov esi, dword [esp + 0x114]
mov edi, dword [esp + 0x120]
mov ebp, dword [esp + 0x110]
xor ecx, ecx
add esi, dword [esp + 0x108]
add edi, dword [esp + 0x108]
mov al, byte [ebp + 9]
xor edx, edx
cmp al, 0
je 0x10004129
mov cl, byte [ebp + 0xa]
mov dl, byte [ebp + 0xb]
add cl, 7
cmp dl, 0
jl 0x10004118
add dl, 1
shl edx, 0x18
mov ecx, dword [ecx*4 + 0x100877e0]
sar edx, 0x19
add edi, ecx
add edi, edx
mov bl, byte [esp + 0xe8]
xor ebp, ebp
cmp al, 0
jne 0x10004202
cmp bl, 0
jne 0x100041b5
mov edi, dword [esp + 0xf4]
xor eax, eax
xor ecx, ecx
xor ebx, ebx
xor edx, edx
mov al, byte [esi]
mov bl, byte [esi + 4]
shl ebx, 0x10
mov cl, byte [esi + 1]
or eax, ebx
mov dl, byte [esi + 5]
shl edx, 0x10
add eax, 0x3800380
or ecx, edx
mov dword [esp + ebp], eax
add ecx, 0x3800380
xor eax, eax
mov dword [esp + ebp + 4], ecx
xor ecx, ecx
mov al, byte [esi + 2]
mov bl, byte [esi + 6]
shl ebx, 0x10
mov cl, byte [esi + 3]
or eax, ebx
mov dl, byte [esi + 7]
shl edx, 0x10
add eax, 0x3800380
or ecx, edx
mov dword [esp + ebp + 8], eax
add ecx, 0x3800380
xor eax, eax
mov dword [esp + ebp + 0xc], ecx
xor ecx, ecx
add ebp, 0x14
add esi, edi
cmp ebp, 0x50
jne 0x1000414e
jmp 0x100043e2
xor eax, eax
mov ecx, dword [esp + 0xf4]
mov al, byte [esi]
xor ebx, ebx
add eax, 0x380
mov bl, byte [esi + 1]
mov dword [esp + ebp], eax
add ebx, 0x380
mov dword [esp + ebp + 4], ebx
xor eax, eax
mov al, byte [esi + 2]
xor ebx, ebx
add eax, 0x380
mov bl, byte [esi + 3]
add esi, ecx
add ebx, 0x380
mov dword [esp + ebp + 8], eax
mov dword [esp + ebp + 0xc], ebx
add ebp, 0x14
xor eax, eax
cmp ebp, 0x50
jne 0x100041be
jmp 0x1000427d
xor eax, eax
xor ebx, ebx
mov al, byte [esi + 1]
xor ecx, ecx
mov cl, byte [esi + 3]
xor edx, edx
shl eax, 0x10
mov bl, byte [edi + 1]
shl ecx, 0x10
mov dl, byte [edi + 3]
shl ebx, 0x10
mov al, byte [esi]
shl edx, 0x10
mov bl, byte [edi]
add eax, 0x4000400
mov cl, byte [esi + 2]
sub eax, ebx
mov dl, byte [edi + 2]
mov ebx, eax
and eax, 0xffff
shr ebx, 0x10
mov dword [esp + ebp], eax
add ecx, 0x4000400
mov dword [esp + ebp + 4], ebx
sub ecx, edx
mov ebx, dword [esp + 0xf4]
mov edx, ecx
and ecx, 0xffff
shr edx, 0x10
add esi, ebx
mov dword [esp + ebp + 8], ecx
mov ebx, dword [esp + 0xf8]
mov dword [esp + ebp + 0xc], edx
add edi, ebx
add ebp, 0x14
xor eax, eax
xor ebx, ebx
cmp ebp, 0x50
jne 0x10004206
mov eax, dword [esp + 0xfc]
mov esi, dword [esp + 0x114]
cmp eax, 1
je 0x100043e2
mov edi, dword [esp + 0x120]
add esi, dword [esp + 0x108]
add edi, dword [esp + 0x108]
add esi, 4
add edi, 4
mov al, byte [esp + 0xe8]
cmp al, 0
je 0x10004372
mov ebp, dword [esp + 0x110]
xor ecx, ecx
xor edx, edx
mov eax, dword [esp + 0xf4]
mov cl, byte [ebp + 0x2a]
mov dl, byte [ebp + 0x2b]
add cl, 7
cmp dl, 0
jl 0x100042e1
add dl, 1
shl edx, 0x18
mov ecx, dword [ecx*4 + 0x100877e0]
sar edx, 0x19
add edi, ecx
add edi, edx
xor ebp, ebp
xor eax, eax
xor ebx, ebx
mov al, byte [esi + 1]
xor ecx, ecx
mov cl, byte [esi + 3]
xor edx, edx
shl eax, 0x10
mov bl, byte [edi + 1]
shl ecx, 0x10
mov dl, byte [edi + 3]
shl ebx, 0x10
mov al, byte [esi]
shl edx, 0x10
mov bl, byte [edi]
add eax, 0x4000400
mov cl, byte [esi + 2]
sub eax, ebx
mov dl, byte [edi + 2]
mov ebx, eax
add ecx, 0x4000400
shl eax, 0x10
and ebx, 0xffff0000
or dword [esp + ebp], eax
or dword [esp + ebp + 4], ebx
sub ecx, edx
mov ebx, dword [esp + 0xf4]
mov edx, ecx
add esi, ebx
shl ecx, 0x10
and edx, 0xffff0000
or dword [esp + ebp + 8], ecx
or dword [esp + ebp + 0xc], edx
mov ebx, dword [esp + 0xf8]
xor eax, eax
add edi, ebx
add ebp, 0x14
xor ebx, ebx
cmp ebp, 0x50
jne 0x100042f8
jmp 0x100043e2
xor eax, eax
xor ebp, ebp
mov al, byte [esi]
xor ebx, ebx
add eax, 0x380
mov bl, byte [esi + 1]
shl eax, 0x10
add ebx, 0x380
shl ebx, 0x10
mov ecx, dword [esp + ebp]
or eax, ecx
mov edx, dword [esp + ebp + 4]
or ebx, edx
mov dword [esp + ebp], eax
mov dword [esp + ebp + 4], ebx
xor eax, eax
mov al, byte [esi + 2]
xor ebx, ebx
add eax, 0x380
mov bl, byte [esi + 3]
shl eax, 0x10
add ebx, 0x380
shl ebx, 0x10
mov ecx, dword [esp + ebp + 8]
or eax, ecx
mov edx, dword [esp + ebp + 0xc]
or ebx, edx
mov dword [esp + ebp + 8], eax
mov ecx, dword [esp + 0xf4]
mov dword [esp + ebp + 0xc], ebx
add esi, ecx
add ebp, 0x14
xor eax, eax
cmp ebp, 0x50
jne 0x10004376
mov eax, dword [esp + 0xf4]
xor ebp, ebp
mov ecx, dword [esp + 0x108]
xor esi, esi
sub eax, ecx
cmp eax, 8
jge 0x100044d9
cmp eax, 4
je 0x100044d9
jl 0x10004418
mov esi, 2
cmp eax, 6
jl 0x1000448a
je 0x1000444c
jmp 0x1000441f
cmp eax, 2
jl 0x1000448a
je 0x1000444c
mov ax, word [esp + esi + 8]
mov bx, word [esp + esi + 0x1c]
mov word [esp + esi + 0xc], ax
mov word [esp + esi + 0x20], bx
mov ax, word [esp + esi + 0x30]
mov bx, word [esp + esi + 0x44]
mov word [esp + esi + 0x34], ax
mov word [esp + esi + 0x48], bx
jmp 0x100044d9
mov ax, word [esp + esi + 4]
mov bx, word [esp + esi + 0x18]
mov word [esp + esi + 8], ax
mov word [esp + esi + 0x1c], bx
mov word [esp + esi + 0xc], ax
mov word [esp + esi + 0x20], bx
mov ax, word [esp + esi + 0x2c]
mov bx, word [esp + esi + 0x40]
mov word [esp + esi + 0x30], ax
mov word [esp + esi + 0x44], bx
mov word [esp + esi + 0x34], ax
mov word [esp + esi + 0x48], bx
jmp 0x100044d9
mov ax, word [esp + esi]
mov bx, word [esp + esi + 0x14]
mov word [esp + esi + 4], ax
mov word [esp + esi + 0x18], bx
mov word [esp + esi + 8], ax
mov word [esp + esi + 0x1c], bx
mov word [esp + esi + 0xc], ax
mov word [esp + esi + 0x20], bx
mov ax, word [esp + esi + 0x28]
mov bx, word [esp + esi + 0x3c]
mov word [esp + esi + 0x2c], ax
mov word [esp + esi + 0x40], bx
mov word [esp + esi + 0x30], ax
mov word [esp + esi + 0x44], bx
mov word [esp + esi + 0x34], ax
mov word [esp + esi + 0x48], bx
mov eax, dword [esp + ebp]
mov edx, dword [esp + ebp + 0xc]
mov ebx, dword [esp + ebp + 4]
mov ecx, dword [esp + ebp + 8]
add eax, 0x8000800
add ebx, 0x8000800
sub eax, edx
sub ebx, ecx
nop
nop
lea edx, [eax + edx*2 + fcn.10001000]
lea ecx, [ebx + ecx*2]
lea esi, [eax + eax*4 + 2]
sub edx, ecx
lea edi, [ebx*2]
lea eax, [eax*2 + 0x58005802]
lea ecx, [edx + ecx*2 - fcn.10001000]
lea ebx, [ebx + ebx*4]
lea esi, [edi + esi + 0x8000800]
and edx, 0xfffefffe
and esi, 0xfff8fff8
sub eax, ebx
shr esi, 3
and eax, 0xfff8fff8
shr eax, 3
and ecx, 0xfffefffe
shr edx, 1
mov dword [esp + ebp + 4], esi
shr ecx, 1
mov dword [esp + ebp + 8], edx
mov dword [esp + ebp], ecx
mov dword [esp + ebp + 0xc], eax
add ebp, 0x14
nop
cmp ebp, 0x50
jne 0x100044d9
xor ebp, ebp
nop
nop
nop
mov eax, dword [esp + ebp]
mov edx, dword [esp + ebp + 0x3c]
mov ebx, dword [esp + ebp + 0x14]
mov ecx, dword [esp + ebp + 0x28]
add eax, fcn.10001000
add ebx, fcn.10001000
mov esi, eax
mov edi, ebx
sub eax, edx
sub ebx, ecx
lea edx, [esi + edx + 0x20002000]
add ecx, edi
lea esi, [eax + eax*4 - 0x30003000]
lea edi, [ebx + ebx*4 - 0x30003000]
lea eax, [eax*2 - 0x7fff7ffe]
add ebx, ebx
sub edx, ecx
sub eax, edi
lea ebx, [esi + ebx + 0x40004000]
and eax, 0xfff0fff0
lea ecx, [edx + ecx*2 - 0x20002000]
and edx, 0xfffcfffc
shr eax, 4
and ebx, 0xfff0fff0
shr ebx, 4
and ecx, 0xfffcfffc
shr edx, 2
mov dword [esp + 0x74], eax
shr ecx, 2
mov dword [esp + 0x58], ebx
sub ecx, 0x8000800
nop
mov dword [esp + 0x5c], edx
mov dword [esp + 0x50], ecx
add ebp, 4
nop
nop
nop
mov eax, dword [esp + ebp]
mov edx, dword [esp + ebp + 0x3c]
mov ebx, dword [esp + ebp + 0x14]
mov ecx, dword [esp + ebp + 0x28]
add eax, fcn.10001000
add ebx, fcn.10001000
mov esi, eax
mov edi, ebx
sub eax, edx
sub ebx, ecx
lea edx, [esi + edx + 0x20002000]
add ecx, edi
lea esi, [eax + eax*4 - 0x30003000]
lea edi, [ebx + ebx*4 - 0x30003000]
lea eax, [eax*2 - 0x7fff7ffe]
add ebx, ebx
sub edx, ecx
sub eax, edi
lea ebx, [esi + ebx + 0x40004000]
and eax, 0xfff0fff0
lea ecx, [edx + ecx*2 - 0x20002000]
and edx, 0xfffcfffc
shr eax, 4
and ebx, 0xfff0fff0
shr ebx, 4
and ecx, 0xfffcfffc
shr edx, 2
mov dword [esp + 0x78], eax
shr ecx, 2
mov dword [esp + 0x60], ebx
sub ecx, 0x8000800
nop
mov dword [esp + 0x70], edx
mov dword [esp + 0x54], ecx
add ebp, 4
nop
nop
nop
mov eax, dword [esp + ebp]
mov edx, dword [esp + ebp + 0x3c]
mov ebx, dword [esp + ebp + 0x14]
mov ecx, dword [esp + ebp + 0x28]
add eax, fcn.10001000
add ebx, fcn.10001000
mov esi, eax
mov edi, ebx
sub eax, edx
sub ebx, ecx
lea edx, [esi + edx + 0x20002000]
add ecx, edi
lea esi, [eax + eax*4 - 0x30003000]
lea edi, [ebx + ebx*4 - 0x30003000]
lea eax, [eax*2 - 0x7fff7ffe]
add ebx, ebx
sub edx, ecx
sub eax, edi
lea ebx, [esi + ebx + 0x40004000]
and eax, 0xfff0fff0
lea ecx, [edx + ecx*2 - 0x20002000]
and edx, 0xfffcfffc
shr eax, 4
and ebx, 0xfff0fff0
shr ebx, 4
and ecx, 0xfffcfffc
shr edx, 2
mov dword [esp + 0x88], eax
shr ecx, 2
mov dword [esp + 0x6c], ebx
sub ecx, 0x8000800
nop
mov dword [esp + 0x7c], edx
mov dword [esp + 0x64], ecx
add ebp, 4
nop
nop
nop
mov eax, dword [esp + ebp]
mov edx, dword [esp + ebp + 0x3c]
mov ebx, dword [esp + ebp + 0x14]
mov ecx, dword [esp + ebp + 0x28]
add eax, fcn.10001000
add ebx, fcn.10001000
mov esi, eax
mov edi, ebx
sub eax, edx
sub ebx, ecx
lea edx, [esi + edx + 0x20002000]
add ecx, edi
lea esi, [eax + eax*4 - 0x30003000]
lea edi, [ebx + ebx*4 - 0x30003000]
lea eax, [eax*2 - 0x7fff7ffe]
add ebx, ebx
sub edx, ecx
sub eax, edi
lea ebx, [esi + ebx + 0x40004000]
and eax, 0xfff0fff0
lea ecx, [edx + ecx*2 - 0x20002000]
and edx, 0xfffcfffc
shr eax, 4
and ebx, 0xfff0fff0
shr ebx, 4
and ecx, 0xfffcfffc
shr edx, 2
mov dword [esp + 0x8c], eax
shr ecx, 2
mov dword [esp + 0x80], ebx
sub ecx, 0x8000800
nop
mov dword [esp + 0x84], edx
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x50]
sub ecx, 0x8000800
mov dword [esp + 0x50], ecx
jmp 0x100047d2
mov ebx, dword [esp + 0x12c]
xor ecx, ecx
cmp ebx, 1
je 0x100047f4
mov edx, 0x8000800
mov dword [esp + ecx*4], edx
mov dword [esp + ecx*4 + 4], edx
add ecx, 2
cmp ecx, 0x14
jl 0x100047e5
mov edi, dword [esp + 0x110]
mov ecx, dword [esp + 0x124]
xor ebx, ebx
mov eax, dword [esp + 0xf0]
mov dl, byte [edi + 9]
add eax, dword [edi + 0xc]
mov esi, dword [ecx]
mov ecx, eax
shl eax, 4
mov dword [esp + 0x90], ebx
mov ebp, dword [esp + 0xec]
add eax, ecx
add ebp, eax
cmp dl, 0
jne 0x10004911
add ebp, 0x198
mov edi, 1
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0xe0]
and eax, 0x7fff
mov bl, byte [ebp]
sub eax, ecx
jl 0x10004898
cmp eax, ebx
jl 0x10004907
imul dword [ebx*4 + 0x10082100]
shr eax, 0x10
mov ebx, dword [ebx*4 + 0x10075720]
mov ebx, dword [ebx + eax*4 - 4]
lea eax, [eax*2 - 1]
and ebx, 0x7ff
mov edx, dword [0x10082500]
add ecx, ebx
mov word [esp], cx
mov dword [esp + 0xe0], ecx
cmp edx, eax
jge 0x100048f5
jmp 0x100048d3
neg eax
cmp eax, ebx
jl 0x10004907
imul dword [ebx*4 + 0x10082100]
shr eax, 0x10
mov edx, dword [ebx*4 + 0x10075720]
mov bx, word [edx + eax*4 - 2]
add eax, eax
sub ebx, 0x800
mov edx, dword [0x10082500]
add ecx, ebx
mov word [esp], cx
mov dword [esp + 0xe0], ecx
cmp edx, eax
jge 0x100048f5
lea edx, [eax*4]
xor ebx, ebx
and al, 0x3f
mov byte [esi + 1], bl
mov cl, 0xb
mov byte [esi + 2], al
mov byte [esi], cl
mov ecx, 0xfffffff8
mov byte [esi + 3], dh
add esi, 4
jmp 0x10004918
mov dl, byte [eax + 0x1008271f]
xor ebx, ebx
mov byte [esi], dl
inc esi
mov ecx, 0xfffffff8
jmp 0x10004918
mov word [esp], cx
xor ecx, ecx
xor ebx, ebx
jmp 0x10004918
xor edi, edi
mov ecx, 0xfffffff8
mov eax, dword [esp + edi*4 + 0x50]
add ecx, 0x10
and eax, 0x7fff
mov bl, byte [edi + ebp]
mov edx, dword [esp + edi*4 + 0x54]
add edi, 2
mov eax, dword [eax*4 + 0x100833a0]
and edx, 0x7fff
cmp eax, ebx
jge 0x100049c7
mov eax, dword [edx*4 + 0x100833a0]
mov bl, byte [edi + ebp - 1]
cmp eax, ebx
jl 0x10004918
mov edx, dword [esp + edi*4 + 0x4c]
and edx, 0xffff
mov ebx, dword [ebx*4 + 0x100873a0]
cmp eax, 0x7f
jg 0x100049cd
mov eax, dword [ebx + edx*4 - 0x1e04]
mov edx, dword [esp + edi*4 + 0x9c]
mov ebx, eax
shr eax, 0x10
mov word [esp + edx*4], bx
mov edx, dword [ecx + 0x10082500]
cmp edx, eax
jge 0x100049b1
shr ecx, 3
lea edx, [eax*4]
and al, 0x3f
mov byte [esi + 1], cl
mov cl, 0xb
mov byte [esi + 2], al
mov byte [esi], cl
xor ebx, ebx
mov byte [esi + 3], dh
add esi, 4
mov ecx, 0xfffffff8
jmp 0x10004918
mov dl, byte [eax + ecx*8 + 0x1008271f]
xor ebx, ebx
mov byte [esi], dl
inc esi
mov ecx, 0xfffffff8
jmp 0x10004918
sub ecx, 8
dec edi
jmp 0x10004952
xor ebx, ebx
mov bl, byte [edi + ebp - 1]
cmp ebx, 0
je 0x10004a4e
cmp edx, 0x800
jl 0x10004a17
imul dword [ebx*4 + 0x10082100]
shr eax, 0x10
mov ebx, dword [ebx*4 + 0x10075720]
mov edx, dword [esp + edi*4 + 0x9c]
nop
mov ebx, dword [ebx + eax*4 - 4]
lea eax, [eax*2 - 1]
mov word [esp + edx*4], bx
mov edx, dword [ecx + 0x10082500]
cmp edx, eax
jge 0x100049b1
jmp 0x10004989
imul dword [ebx*4 + 0x10082100]
shr eax, 0x10
mov ebx, dword [ebx*4 + 0x10075720]
mov edx, dword [esp + edi*4 + 0x9c]
nop
mov bx, word [ebx + eax*4 - 2]
add eax, eax
mov word [esp + edx*4], bx
mov edx, dword [ecx + 0x10082500]
cmp edx, eax
jge 0x100049b1
jmp 0x10004989
mov eax, dword [esp + 0x124]
mov edi, dword [esp + 0x110]
lea ebp, [edi + 0x1c]
mov ebx, dword [eax]
mov byte [esi], 4
cmp ebx, esi
jne 0x10004a6e
mov byte [ebp], 1
jmp 0x10004a75
mov byte [ebp], 0
inc esi
mov dword [eax], esi
mov eax, dword [esp + 0xfc]
xor ebx, ebx
cmp eax, 1
je 0x10004cf5
add edi, 0x20
mov eax, dword [esp + 0xf0]
mov dl, byte [edi + 9]
add eax, dword [edi + 0xc]
mov ecx, eax
shl eax, 4
mov ebp, dword [esp + 0xec]
add eax, ecx
add ebp, eax
cmp dl, 0
jne 0x10004b8f
add ebp, 0x198
mov edi, 1
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0xe0]
shr eax, 0x10
mov bl, byte [ebp]
sub eax, ecx
jl 0x10004b14
cmp eax, ebx
jl 0x10004b84
imul dword [ebx*4 + 0x10082100]
shr eax, 0x10
mov ebx, dword [ebx*4 + 0x10075720]
mov ebx, dword [ebx + eax*4 - 4]
lea eax, [eax*2 - 1]
and ebx, 0x7ff
mov edx, dword [0x10082500]
add ecx, ebx
mov word [esp + 2], cx
mov dword [esp + 0xe0], ecx
cmp edx, eax
jge 0x10004b72
jmp 0x10004b50
neg eax
cmp eax, ebx
jl 0x10004b84
imul dword [ebx*4 + 0x10082100]
shr eax, 0x10
mov edx, dword [ebx*4 + 0x10075720]
mov bx, word [edx + eax*4 - 2]
add eax, eax
sub ebx, 0x800
mov edx, dword [0x10082500]
add ecx, ebx
mov word [esp + 2], cx
mov dword [esp + 0xe0], ecx
cmp edx, eax
jge 0x10004b72
lea edx, [eax*4]
xor ebx, ebx
and al, 0x3f
mov byte [esi + 1], bl
mov cl, 0xb
mov byte [esi + 2], al
mov byte [esi], cl
mov ecx, 0xfffffff8
mov byte [esi + 3], dh
add esi, 4
jmp 0x10004b96
mov dl, byte [eax + 0x1008271f]
xor ebx, ebx
mov byte [esi], dl
inc esi
mov ecx, 0xfffffff8
jmp 0x10004b96
mov word [esp + 2], cx
xor ecx, ecx
xor ebx, ebx
jmp 0x10004b96
xor edi, edi
mov ecx, 0xfffffff8
mov eax, dword [esp + edi*4 + 0x50]
add ecx, 0x10
shr eax, 0x10
mov bl, byte [edi + ebp]
mov edx, dword [esp + edi*4 + 0x54]
add edi, 2
shr edx, 0x10
mov eax, dword [eax*4 + 0x100833a0]
cmp eax, ebx
jge 0x10004cc5
mov eax, dword [edx*4 + 0x100833a0]
mov bl, byte [edi + ebp - 1]
cmp eax, ebx
jl 0x10004b96
mov edx, dword [esp + edi*4 + 0x4c]
shr edx, 0x10
mov ebx, dword [ebx*4 + 0x100873a0]
cmp eax, 0x7f
jg 0x10004c3e
mov eax, dword [ebx + edx*4 - 0x1e04]
mov edx, dword [esp + edi*4 + 0x9c]
mov ebx, eax
shr eax, 0x10
mov word [esp + edx*4 + 2], bx
mov edx, dword [ecx + 0x10082500]
cmp edx, eax
jge 0x10004c28
shr ecx, 3
lea edx, [eax*4]
and al, 0x3f
mov byte [esi + 1], cl
mov cl, 0xb
mov byte [esi + 2], al
mov byte [esi], cl
xor ebx, ebx
mov byte [esi + 3], dh
add esi, 4
mov ecx, 0xfffffff8
jmp 0x10004b96
mov dl, byte [eax + ecx*8 + 0x1008271f]
xor ebx, ebx
mov byte [esi], dl
inc esi
mov ecx, 0xfffffff8
jmp 0x10004b96
xor ebx, ebx
mov bl, byte [edi + ebp - 1]
cmp ebx, 0
je 0x10004cce
cmp edx, 0x800
jl 0x10004c8d
imul dword [ebx*4 + 0x10082100]
shr eax, 0x10
mov ebx, dword [ebx*4 + 0x10075720]
mov edx, dword [esp + edi*4 + 0x9c]
nop
mov ebx, dword [ebx + eax*4 - 4]
lea eax, [eax*2 - 1]
mov word [esp + edx*4 + 2], bx
mov edx, dword [ecx + 0x10082500]
cmp edx, eax
jge 0x10004c28
jmp 0x10004c00
imul dword [ebx*4 + 0x10082100]
shr eax, 0x10
mov ebx, dword [ebx*4 + 0x10075720]
mov edx, dword [esp + edi*4 + 0x9c]
nop
mov bx, word [ebx + eax*4 - 2]
add eax, eax
mov word [esp + edx*4 + 2], bx
mov edx, dword [ecx + 0x10082500]
cmp edx, eax
jge 0x10004c28
jmp 0x10004c00
sub ecx, 8
dec edi
jmp 0x10004bcb
mov eax, dword [esp + 0x124]
mov edi, dword [esp + 0x110]
mov ebx, dword [eax]
lea ebp, [edi + 0x3c]
mov byte [esi], 4
cmp ebx, esi
jne 0x10004cee
mov byte [ebp], 1
jmp 0x10004cf5
mov byte [ebp], 0
inc esi
mov dword [eax], esi
mov ebp, dword [esp + 0x10c]
mov ebx, dword [esp + 0x12c]
cmp ebx, 1
je 0x10004e1a
mov eax, dword [ebp + 0xc]
mov ebp, 0xc
nop
nop
nop
mov eax, dword [esp + ebp + 0x3c]
mov ebx, dword [esp + ebp + 0x14]
mov ecx, dword [esp + ebp]
mov edx, dword [esp + ebp + 0x28]
lea edi, [ebx + ebx*4 + 0x20002]
lea esi, [eax + eax*4 - 0x20002]
xor esi, 0xffffffff
add ecx, 0x20002000
lea edi, [edi + eax*2 + 0x8000800]
lea esi, [esi + ebx*2 + 0x58005801]
shr edi, 2
lea eax, [edx + ecx - fcn.10001000]
shr esi, 2
and edi, 0xffff3fff
sub ecx, edx
and esi, 0xffff3fff
lea edx, [edi + eax - 0x20002000]
sub eax, edi
lea edi, [esi + ecx - 0x20002000]
mov dword [esp + ebp], edx
mov dword [esp + ebp + 0x14], edi
sub ecx, esi
mov dword [esp + ebp + 0x28], ecx
mov dword [esp + ebp + 0x3c], eax
sub ebp, 4
jae 0x10004d15
mov ebp, 0x3c
nop
nop
nop
mov eax, dword [esp + ebp + 0xc]
mov ebx, dword [esp + ebp + 4]
mov ecx, dword [esp + ebp]
mov edx, dword [esp + ebp + 8]
lea edi, [ebx + ebx*4 + 0x20002]
lea esi, [eax + eax*4 - 0x20002]
xor esi, 0xffffffff
add ecx, 0x20002000
lea edi, [edi + eax*2 + fcn.10001000]
lea esi, [esi + ebx*2 - 0x4fff4fff]
shr edi, 2
lea eax, [edx + ecx - 0x20002000]
shr esi, 2
and edi, 0xffff3fff
sub ecx, edx
and esi, 0xffff3fff
lea edx, [edi + eax - 0x1fff1fff]
add eax, 0x20012001
sub eax, edi
lea edi, [esi + ecx - 0x1fff1fff]
add ecx, 0x20012001
mov dword [esp + ebp], edx
sub ecx, esi
mov dword [esp + ebp + 4], edi
mov dword [esp + ebp + 8], ecx
mov dword [esp + ebp + 0xc], eax
sub ebp, 0x14
jae 0x10004d92
jmp 0x10004e1a
mov ebx, dword [esp + 0x12c]
cmp ebx, 1
je 0x100050b9
mov esi, dword [esp + 0x118]
mov edi, dword [esp + 0x120]
mov ebp, dword [esp + 0x110]
xor ecx, ecx
add esi, dword [esp + 0x108]
add edi, dword [esp + 0x108]
mov al, byte [ebp + 9]
xor edx, edx
cmp al, 0
je 0x10004e7a
mov cl, byte [ebp + 0xa]
mov dl, byte [ebp + 0xb]
add cl, 7
cmp dl, 0
jl 0x10004e69
add dl, 1
shl edx, 0x18
mov ecx, dword [ecx*4 + 0x100877e0]
sar edx, 0x19
add edi, ecx
add edi, edx
mov bl, byte [esp + 0xe8]
xor ebp, ebp
cmp al, 0
jne 0x10004f4a
cmp bl, 0
jne 0x10004efe
mov eax, dword [esp + ebp]
mov ecx, dword [esp + ebp + 4]
shr eax, 1
sub ecx, 0x1f001f00
shr ecx, 1
sub eax, 0xf800f80
mov ebx, eax
mov edx, ecx
shr ebx, 0x10
mov byte [esi], al
shr edx, 0x10
mov byte [esi + 1], cl
mov byte [esi + 4], bl
mov byte [esi + 5], dl
mov eax, dword [esp + ebp + 8]
mov ecx, dword [esp + ebp + 0xc]
shr eax, 1
sub ecx, 0x1f001f00
shr ecx, 1
sub eax, 0xf800f80
mov ebx, eax
mov edx, ecx
shr ebx, 0x10
mov byte [esi + 2], al
shr edx, 0x10
mov byte [esi + 3], cl
mov byte [esi + 6], bl
mov byte [esi + 7], dl
mov edi, dword [esp + 0xf8]
add ebp, 0x14
add esi, edi
cmp ebp, 0x50
jne 0x10004e90
jmp 0x100050b9
mov eax, dword [esp + ebp]
mov ebx, dword [esp + ebp + 4]
mov ecx, dword [esp + ebp + 8]
mov edx, dword [esp + ebp + 0xc]
shr eax, 1
sub ebx, 0x1f001f00
shr ebx, 1
sub eax, 0xf800f80
shr ecx, 1
sub edx, 0x1f001f00
shr edx, 1
sub ecx, 0xf800f80
mov byte [esi], al
mov byte [esi + 1], bl
mov byte [esi + 2], cl
mov byte [esi + 3], dl
mov ecx, dword [esp + 0xf8]
add ebp, 0x14
add esi, ecx
cmp ebp, 0x50
jne 0x10004efe
jmp 0x10004f92
mov eax, dword [esp + ebp]
mov ebx, dword [esp + ebp + 4]
shr eax, 1
mov cl, byte [edi]
shr ebx, 1
mov dl, byte [edi + 1]
add al, cl
add bl, dl
mov byte [esi], al
mov byte [esi + 1], bl
mov eax, dword [esp + ebp + 8]
mov ebx, dword [esp + ebp + 0xc]
shr eax, 1
mov cl, byte [edi + 2]
shr ebx, 1
mov dl, byte [edi + 3]
add al, cl
add bl, dl
mov byte [esi + 2], al
mov byte [esi + 3], bl
mov eax, dword [esp + 0xf8]
add ebp, 0x14
add esi, eax
add edi, eax
cmp ebp, 0x50
jne 0x10004f4a
mov eax, dword [esp + 0xfc]
mov esi, dword [esp + 0x118]
cmp eax, 1
je 0x100050b9
mov edi, dword [esp + 0x120]
add esi, dword [esp + 0x108]
add edi, dword [esp + 0x108]
add esi, 4
add edi, 4
mov al, byte [esp + 0xe8]
xor ebp, ebp
cmp al, 0
je 0x1000504e
mov ebp, dword [esp + 0x110]
xor ecx, ecx
xor edx, edx
mov cl, byte [ebp + 0x2a]
mov dl, byte [ebp + 0x2b]
add cl, 7
cmp dl, 0
jl 0x10004fed
add dl, 1
shl edx, 0x18
mov ecx, dword [ecx*4 + 0x100877e0]
sar edx, 0x19
add edi, ecx
add edi, edx
xor ebp, ebp
mov eax, dword [esp + ebp]
mov ebx, dword [esp + ebp + 4]
shr eax, 0x11
mov cl, byte [edi]
shr ebx, 0x11
mov dl, byte [edi + 1]
add al, cl
add bl, dl
mov byte [esi], al
mov byte [esi + 1], bl
mov eax, dword [esp + ebp + 8]
mov ebx, dword [esp + ebp + 0xc]
shr eax, 0x11
mov cl, byte [edi + 2]
shr ebx, 0x11
mov dl, byte [edi + 3]
add al, cl
add bl, dl
mov byte [esi + 2], al
mov byte [esi + 3], bl
mov ebx, dword [esp + 0xf8]
add ebp, 0x14
add edi, ebx
add esi, ebx
cmp ebp, 0x50
jne 0x10005000
jmp 0x100050b9
mov eax, dword [esp + ebp]
mov ebx, dword [esp + ebp + 4]
shr eax, 1
sub ebx, 0x1f001f00
shr ebx, 1
sub eax, 0xf800f80
shr eax, 0x10
and ebx, 0xff0000
shr ebx, 0x10
and eax, 0xff
mov byte [esi], al
mov byte [esi + 1], bl
mov eax, dword [esp + ebp + 8]
mov ebx, dword [esp + ebp + 0xc]
shr eax, 1
sub ebx, 0x1f001f00
shr ebx, 1
sub eax, 0xf800f80
shr eax, 0x10
and ebx, 0xff0000
shr ebx, 0x10
and eax, 0xff
mov byte [esi + 2], al
mov byte [esi + 3], bl
mov eax, dword [esp + 0xf8]
add ebp, 0x14
add esi, eax
cmp ebp, 0x50
jne 0x1000504e
mov eax, dword [esp + 0xfc]
mov ebp, dword [esp + 0x110]
cmp eax, 3
jg 0x100050d5
je 0x10005110
cmp eax, 1
je 0x10005114
jmp 0x10005120
mov bl, byte [ebp + 0x69]
mov eax, dword [esp + 0x108]
mov byte [esp + 0xe8], bl
add eax, 8
mov dword [esp + 0x108], eax
mov ebx, dword [esp + 0xfc]
sub ebx, 2
add ebp, 0x40
mov dword [esp + 0xfc], ebx
mov dword [esp + 0x110], ebp
jmp 0x100040d9
mov bl, 0
jmp 0x100050d8
mov ebp, dword [esp + 0x110]
add ebp, 0x20
jmp 0x10005123
add ebp, 0x40
mov eax, dword [esp + 0x104]
mov dword [esp + 0x110], ebp
sub eax, 4
mov dword [esp + 0x104], eax
jg 0x1000513f
jmp 0x10005188
mov eax, dword [esp + 0x114]
mov ecx, dword [esp + 0xf4]
mov ebx, dword [esp + 0x120]
mov edx, dword [esp + 0x118]
shl ecx, 2
add eax, ecx
mov ecx, dword [esp + 0xf8]
mov dword [esp + 0x114], eax
shl ecx, 2
add ebx, ecx
add edx, ecx
mov dword [esp + 0x120], ebx
mov dword [esp + 0x118], edx
jmp 0x10004046
mov esp, dword [esp + 0xe4]
add esp, 0x130
pop ebx
pop ebp
pop edi
pop esi
ret