Function at 0x40a660
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xc8
mov esi, esp
call fcn.00409630
push eax
mov ecx, esp
push eax
mov dword [esi + 0x88], esp
sub esp, 0x20
mov eax, esp
and eax, 0xfffffff8
mov esp, eax
push eax
mov dword [esi + 0x84], esp
push eax
mov edx, esp
push eax
mov dword [esi + 0x8c], esp
push eax
mov dword [esi + 0x34], esp
push eax
mov dword [esi + 0x60], esp
push eax
mov dword [esi + 0x94], esp
sub esp, 0x80
mov dword [esi + 0x5c], esp
sub esp, 0x100
mov dword [esi + 0x30], esp
push eax
mov dword [esi + 0x98], esp
push eax
mov dword [esi + 0x38], esp
push eax
mov dword [esi + 0x64], esp
sub esp, 0x78
mov edi, esp
and edi, 0xfffffff8
mov esp, edi
push eax
mov dword [esi + 0x90], esp
push eax
mov dword [esi + 0x48], esp
push eax
mov dword [esi + 0x3c], esp
sub esp, 0x30
mov ebx, esp
and ebx, 0xfffffff8
mov dword [esi + 0xa4], ebx
mov esp, ebx
push eax
mov dword [esi + 0x9c], esp
push eax
mov dword [esi + 0xa8], esp
sub esp, 0x10
mov ebx, esp
and ebx, 0xfffffff8
mov dword [esi + 0x68], ebx
mov esp, ebx
jmp 0x40a711
push eax
mov dword [esi + 0xa0], esp
sub esp, 0x40
mov dword [esi + 8], esp
mov ebx, ecx
push eax
mov dword [esi + 0x6c], esp
push eax
mov dword [esi + 0x44], esp
push eax
mov dword [esi + 0x40], esp
push eax
mov dword [esi + 0xac], esp
sub esp, 0x80
mov dword [esi + 0x20], esp
mov dword [esi + 4], edx
mov edx, dword [0x4464c8]
mov ecx, dword [esi + 0x84]
mov cl, byte [ecx]
mov byte [esi + 0x4c], cl
mov byte [eax], 0x1f
mov byte [eax + 1], 0xa5
mov byte [eax + 2], 0xb
mov byte [eax + 3], 0xab
mov byte [eax + 4], 0x18
mov byte [eax + 5], 0xa9
mov byte [eax + 6], 0
mov byte [eax + 7], 0xaf
mov byte [eax + 8], 0x1a
mov byte [eax + 9], 0xad
mov byte [eax + 0xa], 0x18
mov byte [eax + 0xb], 0xb3
mov byte [eax + 0xc], 2
mov byte [eax + 0xd], 0xb1
mov byte [eax + 0xe], 0x42
mov byte [eax + 0xf], 0xb7
mov byte [eax + 0x10], 0x12
mov byte [eax + 0x11], 0xb5
mov byte [eax + 0x12], 0x18
mov byte [eax + 0x13], 0xbb
mov byte [eax + 0x14], 0x16
mov byte [eax + 0x15], 0xb9
mov byte [eax + 0x16], 0xb8
mov byte [eax + 0x17], 0xbf
mov byte [eax + 0x1c], 0
mov dword [eax + 0x18], 0
mov dword [esi + 0x10], 0
mov ecx, dword [esi + 0x10]
cmp ecx, 0x1d
jae 0x40a81e
mov dword [esi + 0x80], edx
mov dword [esi + 0xc], ebx
jmp 0x40a7d4
mov edx, dword [esi + 0x10]
mov ebx, dword [esi + 0x10]
movzx ebx, byte [eax + ebx]
mov ecx, edx
add ecx, 0xcb291b45
add edx, 0x45
and edx, ebx
or ecx, ebx
sub ecx, edx
mov dword [esi + 0xb0], ecx
mov ecx, dword [esi + 0xb0]
add cl, 0x1d
mov edx, dword [esi + 0x10]
mov byte [eax + edx], cl
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
mov ecx, dword [esi + 0x10]
cmp ecx, 0x1d
jb 0x40a7d4
mov ebx, dword [esi + 0xc]
mov edx, dword [esi + 0x80]
jmp 0x40a81e
xor ecx, ecx
sub esp, 0xc
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0x800
call edx
mov ecx, dword [esi + 0x88]
mov dword [ecx], eax
mov eax, dword [ecx]
lea ecx, [0x446490]
sub esp, 4
mov dword [esp], eax
call fcn.00438490
test al, 1
jne 0x40a868
mov byte [ebx], 0
mov eax, dword [esi + 4]
mov dword [eax], 1
jmp 0x40b214
mov eax, dword [0x446490]
sub esp, 8
mov dword [esp], eax
mov dword [esp + 4], 0xcd5bd590
call fcn.0043a500
add esp, 8
mov dword [0x446498], eax
mov eax, dword [0x446490]
sub esp, 8
mov dword [esp], eax
mov dword [esp + 4], 0x3098095e
call fcn.0043a500
add esp, 8
mov dword [0x44649c], eax
mov eax, dword [0x446490]
sub esp, 8
mov dword [esp], eax
mov dword [esp + 4], 0x4133be71
call fcn.0043a500
add esp, 8
mov dword [0x4464a0], eax
mov eax, dword [0x446490]
sub esp, 8
mov dword [esp], eax
mov dword [esp + 4], 0x1c8a781f
call fcn.0043a500
add esp, 8
mov dword [0x4464a4], eax
mov eax, dword [0x446490]
sub esp, 8
mov dword [esp], eax
mov dword [esp + 4], 0x71c23cd8
call fcn.0043a500
add esp, 8
mov dword [0x4464a8], eax
mov eax, dword [0x446490]
sub esp, 8
mov dword [esp], eax
mov dword [esp + 4], 0x1c121576
call fcn.0043a500
add esp, 8
mov dword [0x4464ac], eax
mov eax, dword [0x446490]
sub esp, 8
mov dword [esp], eax
mov dword [esp + 4], 0x21bbc64b
call fcn.0043a500
add esp, 8
mov dword [0x4464b0], eax
mov eax, dword [0x446490]
sub esp, 8
mov dword [esp], eax
mov dword [esp + 4], 0x8d2eb73e
call fcn.0043a500
add esp, 8
mov dword [0x4464b4], eax
mov eax, dword [0x446490]
sub esp, 8
mov dword [esp], eax
mov dword [esp + 4], 0xde1934d7
call fcn.0043a500
add esp, 8
mov dword [0x4464b8], eax
mov eax, dword [0x446490]
sub esp, 8
mov dword [esp], eax
mov dword [esp + 4], 0xa2add3c4
call fcn.0043a500
add esp, 8
mov dword [0x4464bc], eax
mov eax, dword [0x446490]
sub esp, 8
mov dword [esp], eax
mov dword [esp + 4], 0x1f4c40ff
call fcn.0043a500
add esp, 8
mov dword [0x4464c0], eax
mov eax, dword [0x446490]
sub esp, 8
mov dword [esp], eax
mov dword [esp + 4], 0xfe8974d2
call fcn.0043a500
add esp, 8
mov dword [0x4464c4], eax
lea eax, [0x43e5f4]
mov ecx, dword [esi + 0x8c]
mov dword [ecx], eax
lea eax, [0x43e5f4]
mov ecx, dword [esi + 0x34]
mov dword [ecx], eax
lea eax, [0x43e5f4]
add eax, 0x24
mov edx, dword [esi + 0x60]
mov dword [edx], eax
mov edx, dword [esi + 4]
mov eax, dword [ecx]
mov ecx, dword [esi + 0x60]
mov ecx, dword [ecx]
jmp 0x40aa1b
jmp 0x40aa1d
cmp eax, ecx
setne al
test al, 1
mov eax, dword [esi + 0x34]
jne 0x40aa36
jmp 0x40aa2b
mov dword [edx], 2
jmp 0x40ab90
mov dword [esi + 0xc], ebx
mov eax, dword [eax]
mov eax, dword [eax]
mov ecx, dword [esi + 0x94]
mov dword [ecx], eax
mov eax, dword [ecx]
sub esp, 8
mov dword [esp], eax
mov ebx, dword [esi + 0x5c]
mov dword [esp + 4], ebx
call fcn.00433d70
add esp, 8
mov eax, dword [esi + 0x30]
add eax, 0x100
mov dword [esi + 0x2c], eax
mov ecx, ebx
mov eax, ecx
mov dl, byte [eax]
add ecx, 1
cmp dl, 0
jne 0x40aa69
sub eax, ebx
mov ecx, ebx
mov ebx, ecx
add ebx, eax
mov dword [esi + 0x70], 0
mov edx, dword [esi + 0x2c]
add edx, 0xfffffffe
cmp ebx, ecx
mov ecx, dword [esi + 0x30]
mov eax, ecx
jbe 0x40ab0d
mov eax, dword [esi + 0x5c]
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], ecx
jmp 0x40aa9e
mov eax, dword [esi + 0x28]
cmp byte [eax], 0
jne 0x40aaab
mov eax, dword [esi + 0x24]
jmp 0x40ab0d
sub esp, 0xc
lea eax, [esi + 0x70]
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov eax, dword [esi + 0x28]
mov dword [esp], eax
mov dword [esi + 0x2c], edx
call fcn.0040f050
add esp, 0xc
mov edx, dword [esi + 0x28]
add edx, eax
mov ax, word [esi + 0x70]
mov word [esi + 0x5a], ax
mov eax, dword [esi + 0x24]
add eax, 2
mov cx, word [esi + 0x5a]
mov dword [esi + 0x78], ebx
mov ebx, dword [esi + 0x24]
mov word [ebx], cx
mov ebx, dword [esi + 0x78]
mov ecx, eax
sub ecx, dword [esi + 0x2c]
setb cl
mov dword [esi + 0x28], edx
sub edx, ebx
setb dl
and cl, dl
mov edx, dword [esi + 0x2c]
test cl, 1
mov ecx, dword [esi + 0x30]
mov dword [esi + 0x24], eax
jne 0x40aa9e
mov word [eax], 0
sub esp, 4
mov dword [esp], ecx
call fcn.0040b230
add esp, 4
test al, 1
jne 0x40ab26
jmp 0x40ab57
lea eax, [0x4464cc]
sub esp, 8
mov dword [esp], eax
mov eax, dword [esi + 0x30]
mov dword [esp + 4], eax
call fcn.0040bd20
add esp, 8
mov ebx, dword [esi + 0xc]
mov edx, dword [esi + 4]
mov ecx, dword [esi + 0x34]
jmp 0x40ab4c
mov byte [ebx], 1
mov dword [edx], 1
jmp 0x40ab68
mov edx, dword [esi + 4]
mov dword [edx], 0
mov ebx, dword [esi + 0xc]
mov ecx, dword [esi + 0x34]
jmp 0x40ab68
mov eax, dword [edx]
jmp 0x40ab6c
cmp eax, 0
jne 0x40ab79
mov dword [edx], 0
jmp 0x40ab79
mov eax, dword [edx]
cmp eax, 0
jne 0x40ab8e
jmp 0x40ab82
mov eax, dword [ecx]
add eax, 4
mov dword [ecx], eax
jmp 0x40aa12
jmp 0x40ab90
cmp dword [edx], 2
jne 0x40b214
xor eax, eax
sub esp, 4
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetProcessVersion]
mov ecx, dword [esi + 0x98]
mov dword [ecx], eax
mov eax, dword [esi + 0x38]
mov dword [eax], 0
mov ecx, dword [esi + 0x64]
mov dword [ecx], 0
jmp 0x40abc7
jmp 0x40abc9
mov eax, dword [esi + 0x90]
mov al, byte [eax]
mov byte [esi + 0x50], al
mov byte [edi], 0xe0
mov byte [edi + 1], 0x19
mov byte [edi + 2], 0x96
mov byte [edi + 3], 0x1b
mov byte [edi + 4], 0x98
mov byte [edi + 5], 0x15
mov byte [edi + 6], 0xe6
mov byte [edi + 7], 0x17
mov byte [edi + 8], 0xe3
mov byte [edi + 9], 0x11
mov byte [edi + 0xa], 0xd8
mov byte [edi + 0xb], 0x13
mov byte [edi + 0xc], 0x1b
mov byte [edi + 0xd], 0x2d
mov byte [edi + 0xe], 0x19
mov byte [edi + 0xf], 0x2f
mov byte [edi + 0x10], 0xdb
mov byte [edi + 0x11], 0x29
mov byte [edi + 0x12], 0xa6
mov byte [edi + 0x13], 0x2b
mov byte [edi + 0x14], 0xd9
mov byte [edi + 0x15], 0x25
mov byte [edi + 0x16], 0xc7
mov byte [edi + 0x17], 0x27
mov byte [edi + 0x18], 0xd5
mov byte [edi + 0x19], 0x21
mov byte [edi + 0x1a], 0xc1
mov byte [edi + 0x1b], 0x23
mov byte [edi + 0x1c], 0xcb
mov byte [edi + 0x1d], 0x3d
mov byte [edi + 0x1e], 0xcb
mov byte [edi + 0x1f], 0x3f
mov byte [edi + 0x20], 0xcd
mov byte [edi + 0x21], 0x39
mov byte [edi + 0x22], 0xb7
mov byte [edi + 0x23], 0x3b
mov byte [edi + 0x24], 0xc2
mov byte [edi + 0x25], 0x35
mov byte [edi + 0x26], 0xcf
mov byte [edi + 0x27], 0x37
mov byte [edi + 0x28], 0xbc
mov byte [edi + 0x29], 0x31
mov byte [edi + 0x2a], 0xbb
mov byte [edi + 0x2b], 0x33
mov byte [edi + 0x2c], 0xfa
mov byte [edi + 0x2d], 0xcd
mov byte [edi + 0x2e], 0x2d
mov byte [edi + 0x2f], 0xcf
mov byte [edi + 0x30], 0x3f
mov byte [edi + 0x31], 0xc9
mov byte [edi + 0x32], 0x3f
mov byte [edi + 0x33], 0xcb
mov byte [edi + 0x34], 0xf3
mov byte [edi + 0x35], 0xc5
mov byte [edi + 0x36], 0x36
mov byte [edi + 0x37], 0xc7
mov byte [edi + 0x38], 0x32
mov byte [edi + 0x39], 0xc1
mov byte [edi + 0x3a], 0x35
mov byte [edi + 0x3b], 0xc3
mov byte [edi + 0x3c], 0x22
mov byte [edi + 0x3d], 0xdd
mov byte [edi + 0x3e], 0x27
mov byte [edi + 0x3f], 0xdf
mov byte [edi + 0x40], 0x2c
mov byte [edi + 0x41], 0xd9
mov byte [edi + 0x42], 0x27
mov byte [edi + 0x43], 0xdb
mov byte [edi + 0x44], 0x27
mov byte [edi + 0x45], 0xd5
mov byte [edi + 0x46], 0xe1
mov byte [edi + 0x47], 0xd7
mov byte [edi + 0x48], 0x1f
mov byte [edi + 0x49], 0xd1
mov byte [edi + 0x4a], 0x1c
mov byte [edi + 0x4b], 0xd3
mov byte [edi + 0x4c], 0x21
mov byte [edi + 0x4d], 0xed
mov byte [edi + 0x4e], 0x20
mov byte [edi + 0x4f], 0xef
mov byte [edi + 0x50], 0xd9
mov byte [edi + 0x51], 0xe9
mov byte [edi + 0x52], 0xdb
mov byte [edi + 0x53], 0xeb
mov byte [edi + 0x54], 0x2d
mov byte [edi + 0x55], 0xe5
mov byte [edi + 0x56], 0x2f
mov byte [edi + 0x57], 0xe7
mov byte [edi + 0x58], 0x2f
mov byte [edi + 0x59], 0xe1
mov byte [edi + 0x5a], 0xd0
mov byte [edi + 0x5b], 0xe3
mov byte [edi + 0x5c], 0x30
mov byte [edi + 0x5d], 0xfd
mov byte [edi + 0x5e], 0xcd
mov byte [edi + 0x5f], 0xff
mov byte [edi + 0x60], 0xcb
mov byte [edi + 0x61], 0xf9
mov byte [edi + 0x62], 0xcb
mov byte [edi + 0x63], 0xfb
mov byte [edi + 0x64], 0x3d
mov byte [edi + 0x65], 0xf5
mov byte [edi + 0x66], 0xc6
mov byte [edi + 0x67], 0xf7
mov byte [edi + 0x68], 0xc0
mov byte [edi + 0x69], 0xf1
mov byte [edi + 0x6a], 0xf2
mov byte [edi + 0x6b], 0xf3
mov byte [edi + 0x70], 0
mov dword [edi + 0x6c], 0
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0x14]
cmp eax, 0x71
jae 0x40ade6
jmp 0x40ad9f
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x14]
movzx ecx, byte [edi + ecx]
mov edx, eax
add edx, 0x7ec5ea54
and edx, ecx
lea eax, [eax + ecx + 0x7ec5ea54]
add edx, edx
sub eax, edx
mov dword [esi + 0xb4], eax
mov eax, dword [esi + 0xb4]
add al, 0xb4
mov ecx, dword [esi + 0x14]
mov byte [edi + ecx], al
mov eax, dword [esi + 0x14]
inc eax
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x14]
cmp eax, 0x71
jb 0x40ad9f
mov ecx, dword [esi + 0x64]
jmp 0x40ade6
sub esp, 0xc
mov dword [esp], edi
mov eax, dword [esi + 0x38]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.0040bd60
add esp, 0xc
test al, 1
mov eax, dword [esi + 4]
mov edi, dword [esi + 0xa4]
jne 0x40ae11
jmp 0x40b20b
mov eax, dword [esi + 0x48]
mov byte [eax], 0
mov eax, dword [esi + 0x9c]
mov al, byte [eax]
mov byte [esi + 0x54], al
mov byte [edi], 0xaa
mov byte [edi + 1], 0xcc
mov byte [edi + 2], 0xc8
mov byte [edi + 3], 0xd8
mov byte [edi + 4], 0xc4
mov byte [edi + 5], 0x9d
mov byte [edi + 6], 0xd9
mov byte [edi + 7], 0xc3
mov byte [edi + 8], 0xdd
mov byte [edi + 9], 0xc4
mov byte [edi + 0xa], 0xc5
mov byte [edi + 0xb], 0xbc
mov byte [edi + 0xc], 0x90
mov byte [edi + 0xd], 0xd6
mov byte [edi + 0xe], 0xd1
mov byte [edi + 0xf], 0xc3
mov byte [edi + 0x10], 0xc1
mov byte [edi + 0x11], 0xea
mov byte [edi + 0x12], 0xf4
mov byte [edi + 0x13], 0xea
mov byte [edi + 0x14], 0xfa
mov byte [edi + 0x15], 0xea
mov byte [edi + 0x16], 0xfe
mov byte [edi + 0x17], 0xfa
mov byte [edi + 0x18], 0xff
mov byte [edi + 0x19], 0xff
mov byte [edi + 0x1a], 0xe3
mov byte [edi + 0x1b], 0xe2
mov byte [edi + 0x1c], 0xfc
mov byte [edi + 0x1d], 0xe6
mov byte [edi + 0x1e], 0xfb
mov byte [edi + 0x1f], 0xe0
mov byte [edi + 0x20], 0xa4
mov byte [edi + 0x21], 0x97
mov byte [edi + 0x22], 0x58
mov byte [edi + 0x2f], 0
mov dword [edi + 0x2b], 0
mov dword [edi + 0x27], 0
mov dword [edi + 0x23], 0
mov dword [esi + 0x18], 0
mov eax, dword [esi + 0x18]
cmp eax, 0x30
jae 0x40af25
jmp 0x40aed7
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x18]
movzx edx, byte [edi + ecx]
mov ecx, eax
add ecx, 0xa6cc9d8f
lea eax, [eax + edx - 0x59336271]
and ecx, edx
add ecx, ecx
mov edx, ecx
xor edx, eax
not ecx
and eax, ecx
add eax, eax
sub eax, edx
mov dword [esi + 0xb8], eax
mov eax, dword [esi + 0xb8]
add al, 0x17
mov ecx, dword [esi + 0x18]
mov byte [edi + ecx], al
mov eax, dword [esi + 0x18]
inc eax
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x18]
cmp eax, 0x30
jb 0x40aed7
jmp 0x40af25
mov eax, dword [esi + 0x38]
mov eax, dword [eax]
jmp 0x40af2c
sub esp, 8
mov dword [esp], eax
mov dword [esp + 4], edi
call fcn.0040c540
add esp, 8
mov ecx, dword [esi + 0x3c]
mov dword [ecx], eax
mov eax, dword [ecx]
cmp eax, 0
setne al
mov edx, dword [esi + 0x68]
test al, 1
jne 0x40af57
jmp 0x40b1ce
mov eax, dword [esi + 0xa0]
mov al, byte [eax]
mov byte [esi + 0x58], al
mov byte [edx], 0x22
mov byte [edx + 1], 0x34
mov byte [edx + 2], 0xf9
mov byte [edx + 3], 0xf3
mov byte [edx + 4], 0xcd
mov byte [edx + 5], 0xf3
mov byte [edx + 6], 0x22
mov byte [edx + 7], 0x6f
mov word [edx + 0xc], 0
mov dword [edx + 8], 0
mov dword [esi + 0x1c], 0
mov eax, dword [esi + 0x1c]
cmp eax, 0xe
mov dword [esi + 0xc], ebx
jae 0x40b008
jmp 0x40afa2
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x1c]
movzx edi, byte [edx + eax]
mov edx, ecx
add edx, 0x9a7fee51
lea eax, [ecx + edi - 0x658011af]
and edx, edi
mov ebx, 0x658011ae
sub ebx, ecx
or ebx, edi
add ecx, ebx
lea ecx, [edx + ecx - 0x658011ae]
mov edx, eax
not edx
mov edi, ecx
and edi, edx
mov edx, dword [esi + 0x68]
not ecx
and eax, ecx
sub eax, edi
mov dword [esi + 0xbc], eax
mov eax, dword [esi + 0xbc]
add al, 0xc9
mov ecx, dword [esi + 0x1c]
mov byte [edx + ecx], al
mov eax, dword [esi + 0x1c]
inc eax
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x1c]
cmp eax, 0xe
jb 0x40afa2
mov ebx, dword [esi + 0xc]
jmp 0x40b008
mov eax, dword [esi + 0x3c]
mov eax, dword [eax]
sub esp, 8
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.0040c540
add esp, 8
mov ecx, dword [esi + 0xa8]
mov dword [ecx], eax
mov eax, dword [ecx]
cmp eax, 0
setne al
jmp 0x40b031
test al, 1
jne 0x40b03a
jmp 0x40b1cc
mov eax, dword [ecx]
mov byte [eax], 0
mov eax, dword [esi + 0x3c]
mov eax, dword [eax]
add eax, 0x22
mov ecx, dword [esi + 0x6c]
mov dword [ecx], eax
mov eax, dword [ecx]
sub esp, 4
mov dword [esp], eax
call fcn.00408ee0
add esp, 4
mov ecx, dword [esi + 0x44]
mov dword [ecx], eax
mov edi, dword [esi + 0x40]
mov dword [edi], 0
mov edx, dword [esi + 4]
mov eax, dword [edi]
cmp eax, dword [ecx]
jb 0x40b07e
mov dword [edx], 4
mov ecx, dword [esi + 8]
jmp 0x40b0f4
mov eax, dword [esi + 0x6c]
mov eax, dword [eax]
mov ecx, dword [edi]
mov al, byte [eax + ecx]
mov ecx, dword [esi + 0xac]
mov byte [ecx], al
movsx eax, byte [ecx]
cmp eax, 0x61
jl 0x40b0c6
movsx eax, byte [ecx]
cmp eax, 0x7a
jg 0x40b0c6
movsx eax, byte [ecx]
sub eax, 0x61
add eax, 0xfffffff4
add eax, 1
sub eax, 0xffffffe6
mov ecx, 0x1a
cdq
idiv ecx
mov eax, edx
and eax, 0x61
shl eax, 1
xor edx, 0x61
add edx, eax
jmp 0x40b0c8
mov dl, byte [ecx]
mov edi, dword [esi + 0x40]
mov eax, dword [edi]
mov ecx, dword [esi + 8]
mov byte [ecx + eax], dl
mov eax, dword [edi]
mov edx, dword [esi + 4]
mov ecx, eax
and ecx, 1
shl ecx, 1
xor eax, 1
add eax, ecx
mov ecx, dword [esi + 0x44]
jmp 0x40b0ea
mov edi, dword [esi + 0x40]
mov dword [edi], eax
jmp 0x40b06d
mov eax, dword [esi + 0x44]
mov eax, dword [eax]
mov byte [ecx + eax], 0
mov edi, dword [esi + 0x20]
add edi, 0x80
mov eax, ecx
mov dl, byte [eax]
add ecx, 1
cmp dl, 0
jne 0x40b106
mov ecx, dword [esi + 8]
sub eax, ecx
mov ebx, ecx
add ebx, eax
mov dword [esi + 0x74], 0
add edi, 0xfffffffe
cmp ebx, ecx
mov eax, dword [esi + 0x20]
jbe 0x40b186
mov edx, dword [esi + 0x20]
jmp 0x40b131
cmp byte [ecx], 0
jne 0x40b13a
mov eax, edx
jmp 0x40b186
sub esp, 0xc
lea eax, [esi + 0x74]
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], ecx
mov dword [esi + 8], ecx
mov dword [esi + 0x7c], edx
call fcn.0040f050
add esp, 0xc
add dword [esi + 8], eax
mov cx, word [esi + 0x74]
mov edx, dword [esi + 0x7c]
mov eax, edx
add eax, 2
mov word [edx], cx
mov ecx, eax
sub ecx, edi
setb cl
mov edx, dword [esi + 8]
sub edx, ebx
setb dl
and cl, dl
test cl, 1
mov ecx, dword [esi + 8]
mov edx, eax
jne 0x40b131
mov word [eax], 0
sub esp, 4
mov eax, dword [esi + 0x20]
mov dword [esp], eax
call fcn.0040b230
add esp, 4
mov ebx, dword [esi + 0xc]
test al, 1
jne 0x40b1a5
jmp 0x40b1cc
lea eax, [0x4464cc]
sub esp, 8
mov dword [esp], eax
mov eax, dword [esi + 0x20]
mov dword [esp + 4], eax
call fcn.0040bd20
add esp, 8
jmp 0x40b1c2
mov eax, dword [esi + 0x48]
mov byte [eax], 1
jmp 0x40b1ca
jmp 0x40b1cc
jmp 0x40b1ce
mov eax, dword [esi + 0x38]
mov eax, dword [eax]
sub esp, 4
mov dword [esp], eax
call fcn.00437150
add esp, 4
mov eax, dword [esi + 0x48]
test byte [eax], 1
je 0x40b1f9
mov byte [ebx], 1
mov eax, dword [esi + 4]
jmp 0x40b1f1
mov dword [eax], 1
jmp 0x40b204
mov eax, dword [esi + 4]
mov dword [eax], 0
jmp 0x40b204
cmp dword [eax], 0
jne 0x40b214
jmp 0x40b20b
mov byte [ebx], 0
mov dword [eax], 1
mov al, byte [ebx]
and al, 1
movzx eax, al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret