Function at 0x40a560
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, 0x2c8
mov esi, esp
push eax
mov dword [esi + 0x104], esp
push eax
mov ebx, esp
push eax
mov eax, esp
sub esp, 0x30
mov ecx, esp
and ecx, 0xfffffff8
mov esp, ecx
push eax
mov dword [esi + 0x108], esp
jmp 0x40a591
mov dword [esi + 0xf4], ecx
mov dword [esi + 0x50], eax
jmp 0x40a59c
push eax
mov dword [esi + 0x110], esp
sub esp, 0x10
mov eax, esp
and eax, 0xfffffff8
mov dword [esi + 0x4c], eax
mov esp, eax
push eax
mov dword [esi + 0x10c], esp
sub esp, 0x40
mov dword [esi + 0xc], esp
push eax
mov dword [esi + 0xf8], esp
push eax
mov dword [esi + 0x54], esp
push eax
mov dword [esi + 0x20], esp
push eax
mov dword [esi + 0x114], esp
sub esp, 0x80
mov dword [esi + 0x58], esp
mov eax, dword [0x446540]
mov cl, byte [esi + 0x64]
mov byte [esi + 0x68], cl
mov byte [esi + 0x28], 0xc7
mov byte [esi + 0x29], 0x4d
mov byte [esi + 0x2a], 0xdb
mov byte [esi + 0x2b], 0x43
mov byte [esi + 0x2c], 0xd2
mov byte [esi + 0x2d], 0x41
mov byte [esi + 0x2e], 0xde
mov byte [esi + 0x2f], 0x47
mov byte [esi + 0x30], 0xd0
mov byte [esi + 0x31], 0x45
mov byte [esi + 0x32], 0x2e
mov byte [esi + 0x33], 0xbb
mov byte [esi + 0x34], 0x28
mov byte [esi + 0x35], 0xb9
mov byte [esi + 0x36], 0xec
mov byte [esi + 0x37], 0xbf
mov byte [esi + 0x38], 0x18
mov byte [esi + 0x39], 0xbd
mov byte [esi + 0x3a], 0x2e
mov byte [esi + 0x3b], 0xb3
mov byte [esi + 0x3c], 0x2c
mov byte [esi + 0x3d], 0xb1
mov byte [esi + 0x3e], 0xb6
mov byte [esi + 0x3f], 0xb7
mov dword [esi + 0x10], 0
mov ecx, dword [esi + 0x10]
cmp ecx, 0x18
jae 0x40a6a0
jmp 0x40a658
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x10]
movzx edi, byte [esi + edx + 0x28]
mov edx, ecx
add edx, 0xb1066ff6
add ecx, 0xf6
or ecx, edx
and ecx, edi
or edx, edi
sub edx, ecx
mov dword [esi + 0x128], edx
mov ecx, dword [esi + 0x128]
add cl, 0x46
mov edx, dword [esi + 0x10]
mov byte [esi + edx + 0x28], cl
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
mov ecx, dword [esi + 0x10]
cmp ecx, 0x18
jb 0x40a658
jmp 0x40a6a0
lea ecx, [esi + 0x28]
xor edx, edx
sub esp, 0xc
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [esp + 8], 0x800
call eax
mov dword [esi + 0x124], eax
mov eax, dword [esi + 0x124]
lea ecx, [0x446508]
sub esp, 4
mov dword [esp], eax
call fcn.00438670
test al, 1
jne 0x40a6ee
mov byte [esi + 7], 0
mov dword [esi + 8], 1
jmp 0x40b1e3
mov eax, dword [0x446508]
sub esp, 8
mov dword [esp], eax
mov dword [esp + 4], 0x62b3486b
call fcn.0043a6c0
add esp, 8
mov dword [0x446510], eax
mov eax, dword [0x446508]
sub esp, 8
mov dword [esp], eax
mov dword [esp + 4], 0xdfcb006b
call fcn.0043a6c0
add esp, 8
mov dword [0x446514], eax
mov eax, dword [0x446508]
sub esp, 8
mov dword [esp], eax
mov dword [esp + 4], 0x496f8bf4
call fcn.0043a6c0
add esp, 8
mov dword [0x446518], eax
mov eax, dword [0x446508]
sub esp, 8
mov dword [esp], eax
mov dword [esp + 4], 0xb0c94c10
call fcn.0043a6c0
add esp, 8
mov dword [0x44651c], eax
mov eax, dword [0x446508]
sub esp, 8
mov dword [esp], eax
mov dword [esp + 4], 0x2ab70a9
call fcn.0043a6c0
add esp, 8
mov dword [0x446520], eax
mov eax, dword [0x446508]
sub esp, 8
mov dword [esp], eax
mov dword [esp + 4], 0x5b275fff
call fcn.0043a6c0
add esp, 8
mov dword [0x446524], eax
mov eax, dword [0x446508]
sub esp, 8
mov dword [esp], eax
mov dword [esp + 4], 0xfac074e6
call fcn.0043a6c0
add esp, 8
mov dword [0x446528], eax
mov eax, dword [0x446508]
sub esp, 8
mov dword [esp], eax
mov dword [esp + 4], 0x53e744db
call fcn.0043a6c0
add esp, 8
mov dword [0x44652c], eax
mov eax, dword [0x446508]
sub esp, 8
mov dword [esp], eax
mov dword [esp + 4], 0x687139c0
call fcn.0043a6c0
add esp, 8
mov dword [0x446530], eax
mov eax, dword [0x446508]
sub esp, 8
mov dword [esp], eax
mov dword [esp + 4], 0xb27c8613
call fcn.0043a6c0
add esp, 8
mov dword [0x446534], eax
mov eax, dword [0x446508]
sub esp, 8
mov dword [esp], eax
mov dword [esp + 4], 0xdd44a73a
call fcn.0043a6c0
add esp, 8
mov dword [0x446538], eax
mov eax, dword [0x446508]
sub esp, 8
mov dword [esp], eax
mov dword [esp + 4], 0xe2d4035b
call fcn.0043a6c0
add esp, 8
mov dword [0x44653c], eax
lea eax, [0x43e5f4]
mov dword [esi + 0x13c], eax
lea eax, [0x43e5f4]
mov dword [esi + 0x24], eax
lea eax, [0x43e5f4]
add eax, 0x24
mov dword [esi + 0x120], eax
mov eax, dword [esi + 0x24]
cmp eax, dword [esi + 0x120]
setne al
jmp 0x40a8a0
test al, 1
jne 0x40a8b2
jmp 0x40a8a6
mov dword [esi + 8], 2
jmp 0x40aa0a
mov dword [esi + 0x5c], ebx
mov eax, dword [esi + 0x24]
mov eax, dword [eax]
mov dword [esi + 0x11c], eax
lea eax, [esi + 0x140]
mov ecx, dword [esi + 0x11c]
sub esp, 8
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00433d10
add esp, 8
lea edi, [esi + 0x140]
lea ebx, [esi + 0x1c0]
mov eax, ebx
add eax, 0x100
mov dword [esi + 0x48], eax
mov ecx, edi
mov eax, ecx
mov dl, byte [eax]
add ecx, 1
cmp dl, 0
jne 0x40a8f6
sub eax, edi
mov ecx, edi
add ecx, eax
mov dword [esi + 0xfc], 0
mov eax, dword [esi + 0x48]
add eax, 0xfffffffe
cmp ecx, edi
ja 0x40a91e
jmp 0x40a983
mov dword [esi + 0x48], eax
jmp 0x40a923
cmp byte [edi], 0
jne 0x40a92c
mov eax, ebx
jmp 0x40a981
sub esp, 0xc
lea eax, [esi + 0xfc]
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edi
mov dword [esi + 0xf0], ecx
call fcn.0040ec40
add esp, 0xc
add edi, eax
mov cx, word [esi + 0xfc]
mov eax, ebx
add eax, 2
mov word [ebx], cx
mov ecx, eax
sub ecx, dword [esi + 0x48]
setb cl
mov edx, edi
sub edx, dword [esi + 0xf0]
setb dl
and cl, dl
test cl, 1
mov ecx, dword [esi + 0xf0]
mov ebx, eax
jne 0x40a923
mov ebx, eax
mov word [ebx], 0
lea eax, [esi + 0x1c0]
sub esp, 4
mov dword [esp], eax
call fcn.0040b200
add esp, 4
test al, 1
mov ebx, dword [esi + 0x5c]
jne 0x40a9a5
jmp 0x40a9d0
lea eax, [esi + 0x1c0]
lea ecx, [0x446544]
sub esp, 8
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0040baa0
add esp, 8
mov byte [esi + 7], 1
mov dword [esi + 8], 1
jmp 0x40a9d9
mov dword [esi + 8], 0
jmp 0x40a9d9
mov eax, dword [esi + 8]
jmp 0x40a9de
jmp 0x40a9e0
cmp eax, 0
jne 0x40a9ee
mov dword [esi + 8], 0
jmp 0x40a9ee
cmp dword [esi + 8], 0
jne 0x40aa08
jmp 0x40a9f6
mov eax, dword [esi + 0x24]
add eax, 4
mov dword [esi + 0x24], eax
jmp 0x40aa01
jmp 0x40aa03
jmp 0x40a892
jmp 0x40aa0a
cmp dword [esi + 8], 2
jne 0x40b1e3
xor eax, eax
sub esp, 4
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetProcessVersion]
mov dword [esi + 0x138], eax
mov dword [esi + 0x60], 0
jmp 0x40aa35
jmp 0x40aa37
mov dword [esi + 0x118], 0
mov eax, dword [esi + 0x104]
mov al, byte [eax]
mov byte [esi + 0x6c], al
mov byte [esi + 0x78], 0x30
mov byte [esi + 0x79], 0xd9
mov byte [esi + 0x7a], 0x26
mov byte [esi + 0x7b], 0xdb
mov byte [esi + 0x7c], 0x18
mov byte [esi + 0x7d], 0xe5
mov byte [esi + 0x7e], 0x16
mov byte [esi + 0x7f], 0xe7
mov byte [esi + 0x80], 0x13
mov byte [esi + 0x81], 0xe1
mov byte [esi + 0x82], 0xd8
mov byte [esi + 0x83], 0xe3
mov byte [esi + 0x84], 0xdb
mov byte [esi + 0x85], 0xed
mov byte [esi + 0x86], 0xd9
mov byte [esi + 0x87], 0xef
mov byte [esi + 0x88], 0x1b
mov byte [esi + 0x89], 0xe9
mov byte [esi + 0x8a], 0x16
mov byte [esi + 0x8b], 0xeb
mov byte [esi + 0x8c], 0x19
mov byte [esi + 0x8d], 0xf5
mov byte [esi + 0x8e], 0x17
mov byte [esi + 0x8f], 0xf7
mov byte [esi + 0x90], 5
mov byte [esi + 0x91], 0xf1
mov byte [esi + 0x92], 0x11
mov byte [esi + 0x93], 0xf3
mov byte [esi + 0x94], 0xb
mov byte [esi + 0x95], 0xfd
mov byte [esi + 0x96], 0xb
mov byte [esi + 0x97], 0xff
mov byte [esi + 0x98], 0xd
mov byte [esi + 0x99], 0xf9
mov byte [esi + 0x9a], 7
mov byte [esi + 0x9b], 0xfb
mov byte [esi + 0x9c], 0x72
mov byte [esi + 0x9d], 0x85
mov byte [esi + 0x9e], 0x6f
mov byte [esi + 0x9f], 0x87
mov byte [esi + 0xa0], 0x7c
mov byte [esi + 0xa1], 0x81
mov byte [esi + 0xa2], 0x7b
mov byte [esi + 0xa3], 0x83
mov byte [esi + 0xa4], 0xba
mov byte [esi + 0xa5], 0x8d
mov byte [esi + 0xa6], 0x6d
mov byte [esi + 0xa7], 0x8f
mov byte [esi + 0xa8], 0x7f
mov byte [esi + 0xa9], 0x89
mov byte [esi + 0xaa], 0x7f
mov byte [esi + 0xab], 0x8b
mov byte [esi + 0xac], 0xa3
mov byte [esi + 0xad], 0x95
mov byte [esi + 0xae], 0x66
mov byte [esi + 0xaf], 0x97
mov byte [esi + 0xb0], 0x62
mov byte [esi + 0xb1], 0x91
mov byte [esi + 0xb2], 0x65
mov byte [esi + 0xb3], 0x93
mov byte [esi + 0xb4], 0x72
mov byte [esi + 0xb5], 0x9d
mov byte [esi + 0xb6], 0x77
mov byte [esi + 0xb7], 0x9f
mov byte [esi + 0xb8], 0x6c
mov byte [esi + 0xb9], 0x99
mov byte [esi + 0xba], 0x77
mov byte [esi + 0xbb], 0x9b
mov byte [esi + 0xbc], 0x57
mov byte [esi + 0xbd], 0xa5
mov byte [esi + 0xbe], 0x91
mov byte [esi + 0xbf], 0xa7
mov byte [esi + 0xc0], 0x9f
mov byte [esi + 0xc1], 0xa1
mov byte [esi + 0xc2], 0x9c
mov byte [esi + 0xc3], 0xa3
mov byte [esi + 0xc4], 0x91
mov byte [esi + 0xc5], 0xad
mov byte [esi + 0xc6], 0x90
mov byte [esi + 0xc7], 0xaf
mov byte [esi + 0xc8], 0x99
mov byte [esi + 0xc9], 0xa9
mov byte [esi + 0xca], 0x9b
mov byte [esi + 0xcb], 0xab
mov byte [esi + 0xcc], 0x8d
mov byte [esi + 0xcd], 0xb5
mov byte [esi + 0xce], 0x8f
mov byte [esi + 0xcf], 0xb7
mov byte [esi + 0xd0], 0x8f
mov byte [esi + 0xd1], 0xb1
mov byte [esi + 0xd2], 0x80
mov byte [esi + 0xd3], 0xb3
mov byte [esi + 0xd4], 0x80
mov byte [esi + 0xd5], 0xbd
mov byte [esi + 0xd6], 0x8d
mov byte [esi + 0xd7], 0xbf
mov byte [esi + 0xd8], 0x8b
mov byte [esi + 0xd9], 0xb9
mov byte [esi + 0xda], 0x8b
mov byte [esi + 0xdb], 0xbb
mov byte [esi + 0xdc], 0x7d
mov byte [esi + 0xdd], 0x45
mov byte [esi + 0xde], 0x76
mov byte [esi + 0xdf], 0x47
mov byte [esi + 0xe0], 0x70
mov byte [esi + 0xe1], 0x41
mov byte [esi + 0xe2], 0x42
mov byte [esi + 0xe3], 0x43
mov dword [esi + 0xeb], 0
mov dword [esi + 0xe8], 0
mov dword [esi + 0xe4], 0
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0x14]
cmp eax, 0x77
jae 0x40ada2
jmp 0x40ad57
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x14]
movzx ecx, byte [esi + ecx + 0x78]
mov edx, eax
and edx, 0xf2b8e69c
xor eax, 0x72b8e69c
lea eax, [eax + edx*2]
mov edx, eax
add edx, ecx
and eax, ecx
add eax, eax
sub edx, eax
mov dword [esi + 0x12c], edx
mov eax, dword [esi + 0x12c]
add al, 0xbc
mov ecx, dword [esi + 0x14]
mov byte [esi + ecx + 0x78], al
mov eax, dword [esi + 0x14]
inc eax
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x14]
cmp eax, 0x77
jb 0x40ad57
jmp 0x40ada2
lea eax, [esi + 0x78]
lea ecx, [esi + 0x60]
lea edx, [esi + 0x118]
sub esp, 0xc
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.0040bae0
add esp, 0xc
mov edx, dword [esi + 0xf4]
jmp 0x40adcc
jmp 0x40adce
test al, 1
jne 0x40add7
jmp 0x40b1d2
mov byte [ebx], 0
mov eax, dword [esi + 0x108]
mov al, byte [eax]
mov byte [esi + 0x70], al
mov byte [edx], 0x3c
mov byte [edx + 1], 0xf2
mov byte [edx + 2], 0xf2
mov byte [edx + 3], 2
mov byte [edx + 4], 0xa
mov byte [edx + 5], 0x45
mov byte [edx + 6], 5
mov byte [edx + 7], 0xb
mov byte [edx + 8], 9
mov byte [edx + 9], 0xfa
mov byte [edx + 0xa], 0xf9
mov byte [edx + 0xb], 0x36
mov byte [edx + 0xc], 0x4e
mov byte [edx + 0xd], 0xc
mov byte [edx + 0xe], 0xd
mov byte [edx + 0xf], 0xfb
mov byte [edx + 0x10], 5
mov byte [edx + 0x11], 0xf0
mov byte [edx + 0x12], 0xfe
mov byte [edx + 0x13], 0xec
mov byte [edx + 0x14], 4
mov byte [edx + 0x15], 0xf0
mov byte [edx + 0x16], 4
mov byte [edx + 0x17], 4
mov byte [edx + 0x18], 0xf7
mov byte [edx + 0x19], 0xf7
mov byte [edx + 0x1a], 0xfb
mov byte [edx + 0x1b], 0xe4
mov byte [edx + 0x1c], 0xf2
mov byte [edx + 0x1d], 0xfc
mov byte [edx + 0x1e], 0xf3
mov byte [edx + 0x1f], 0xfa
mov byte [edx + 0x20], 0xa2
mov byte [edx + 0x21], 0xdf
mov byte [edx + 0x22], 0x82
mov byte [edx + 0x2b], 0
mov dword [edx + 0x27], 0
mov dword [edx + 0x23], 0
mov dword [esi + 0x18], 0
mov eax, dword [esi + 0x18]
cmp eax, 0x2c
jae 0x40aeda
jmp 0x40ae93
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x18]
movzx ecx, byte [edx + ecx]
mov edx, eax
add edx, 0x70
add eax, ecx
and edx, ecx
add edx, edx
sub eax, edx
mov edx, dword [esi + 0xf4]
add eax, 0x1b08970
mov dword [esi + 0x130], eax
mov eax, dword [esi + 0x130]
add al, 0xf0
mov ecx, dword [esi + 0x18]
mov byte [edx + ecx], al
mov eax, dword [esi + 0x18]
inc eax
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x18]
cmp eax, 0x2c
jb 0x40ae93
jmp 0x40aeda
mov eax, dword [esi + 0x60]
sub esp, 8
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.0040c120
add esp, 8
mov ecx, dword [esi + 0x50]
mov dword [ecx], eax
cmp dword [ecx], 0
je 0x40b197
mov eax, dword [esi + 0x10c]
mov al, byte [eax]
mov byte [esi + 0x74], al
mov edx, dword [esi + 0x4c]
mov byte [edx], 0x9c
mov byte [edx + 1], 0x8e
mov byte [edx + 2], 0x49
mov byte [edx + 3], 0x4b
mov byte [edx + 4], 0x75
mov byte [edx + 5], 0x43
mov byte [edx + 6], 0x90
mov byte [edx + 7], 0xd7
mov dword [edx + 0xc], 0
mov dword [edx + 8], 0
mov dword [esi + 0x1c], 0
mov eax, dword [esi + 0x1c]
cmp eax, 0x10
jae 0x40af94
jmp 0x40af49
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x4c]
movzx edx, byte [edx + ecx]
mov ecx, eax
add ecx, edx
add eax, 0x64
and eax, edx
mov edx, dword [esi + 0x4c]
add eax, eax
sub ecx, eax
add ecx, 0x5d4b8164
mov dword [esi + 0x134], ecx
mov eax, dword [esi + 0x134]
add al, 0x44
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, 0x10
jb 0x40af49
mov ecx, dword [esi + 0x50]
jmp 0x40af94
mov eax, dword [ecx]
sub esp, 8
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.0040c120
add esp, 8
mov edx, dword [esi + 0x110]
mov dword [edx], eax
mov eax, dword [edx]
mov ecx, dword [esi + 0x50]
jmp 0x40afb7
cmp eax, 0
setne al
test al, 1
jne 0x40afc6
jmp 0x40b195
mov eax, dword [edx]
mov byte [eax], 0
mov eax, dword [ecx]
add eax, 0x22
mov ecx, dword [esi + 0xf8]
mov dword [ecx], eax
mov eax, dword [ecx]
sub esp, 4
mov dword [esp], eax
call fcn.00408fa0
add esp, 4
mov ecx, dword [esi + 0x54]
mov dword [ecx], eax
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov edx, dword [esi + 0xc]
mov eax, dword [eax]
mov ecx, dword [esi + 0x54]
mov ecx, dword [ecx]
jmp 0x40b002
cmp eax, ecx
setb al
test al, 1
mov edi, dword [esi + 0x58]
jne 0x40b020
jmp 0x40b010
mov dword [esi + 8], 4
jmp 0x40b019
jmp 0x40b01b
jmp 0x40b0b5
mov eax, dword [esi + 0xf8]
mov eax, dword [eax]
mov ecx, dword [esi + 0x20]
mov ecx, dword [ecx]
mov al, byte [eax + ecx]
mov ecx, dword [esi + 0x114]
mov byte [ecx], al
movsx eax, byte [ecx]
jmp 0x40b03d
cmp eax, 0x61
setge al
test al, 1
jne 0x40b049
jmp 0x40b089
mov al, byte [ecx]
movsx eax, al
cmp eax, 0x7a
setle al
jmp 0x40b056
jmp 0x40b058
test al, 1
jne 0x40b05e
jmp 0x40b089
movsx eax, byte [ecx]
add eax, 0xffffff9e
add eax, 1
add eax, 0xfffffff5
xor ecx, ecx
sub ecx, eax
add ecx, 0xffffffe6
xor eax, eax
sub eax, ecx
mov ecx, 0x1a
cdq
idiv ecx
add edx, 0x61
mov eax, dword [esi + 0x20]
jmp 0x40b085
jmp 0x40b087
jmp 0x40b08e
mov dl, byte [ecx]
mov eax, dword [esi + 0x20]
mov edi, eax
mov eax, dword [edi]
mov ecx, dword [esi + 0xc]
mov byte [ecx + eax], dl
mov edx, ecx
mov eax, dword [edi]
xor ecx, ecx
sub ecx, eax
add ecx, 0xffffffff
xor eax, eax
sub eax, ecx
jmp 0x40b0a9
mov ecx, dword [esi + 0x20]
mov dword [ecx], eax
mov eax, ecx
jmp 0x40aff9
mov dword [esi + 0x5c], ebx
mov eax, dword [esi + 0x54]
mov eax, dword [eax]
mov byte [edx + eax], 0
add edi, 0x80
mov ecx, edx
mov eax, ecx
mov dl, byte [eax]
add ecx, 1
cmp dl, 0
jne 0x40b0c9
mov edx, dword [esi + 0xc]
sub eax, edx
mov ebx, edx
add ebx, eax
mov dword [esi + 0x100], 0
add edi, 0xfffffffe
cmp ebx, edx
mov ecx, dword [esi + 0x58]
mov eax, ecx
jbe 0x40b156
mov dword [esi + 0x44], ecx
jmp 0x40b0f9
cmp byte [edx], 0
jne 0x40b103
mov eax, dword [esi + 0x44]
jmp 0x40b156
sub esp, 0xc
lea eax, [esi + 0x100]
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], edx
mov dword [esi + 0xc], edx
call fcn.0040ec40
add esp, 0xc
add dword [esi + 0xc], eax
mov cx, word [esi + 0x100]
mov edx, dword [esi + 0x44]
mov eax, edx
add eax, 2
mov word [edx], cx
mov ecx, eax
sub ecx, edi
setb cl
mov edx, dword [esi + 0xc]
sub edx, ebx
setb dl
and cl, dl
mov edx, dword [esi + 0xc]
test cl, 1
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x44], eax
jne 0x40b0f9
mov word [eax], 0
sub esp, 4
mov dword [esp], ecx
mov edi, ecx
call fcn.0040b200
add esp, 4
test al, 1
mov ebx, dword [esi + 0x5c]
jne 0x40b174
jmp 0x40b18f
lea eax, [0x446544]
sub esp, 8
mov dword [esp], eax
mov dword [esp + 4], edi
call fcn.0040baa0
add esp, 8
mov byte [ebx], 1
jmp 0x40b191
jmp 0x40b193
jmp 0x40b195
jmp 0x40b197
mov eax, dword [esi + 0x60]
sub esp, 4
mov dword [esp], eax
call fcn.00437380
add esp, 4
mov al, byte [ebx]
test al, 1
jne 0x40b1b0
jmp 0x40b1bf
mov byte [esi + 7], 1
mov dword [esi + 8], 1
jmp 0x40b1bd
jmp 0x40b1c8
mov dword [esi + 8], 0
jmp 0x40b1c8
mov eax, dword [esi + 8]
cmp eax, 0
jne 0x40b1dd
jmp 0x40b1d2
mov byte [esi + 7], 0
mov dword [esi + 8], 1
jmp 0x40b1df
jmp 0x40b1e1
jmp 0x40b1e3
mov al, byte [esi + 7]
and al, 1
movzx eax, al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret