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

Disassembly:
push 0xffffffffffffffff
push 0x1005106e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24c
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x84]
mov dword [esp + 0xec], 0x80
call fcn.1002f830
lea eax, [esp + 0xec]
xor edi, edi
mov esi, 0x10058b90
push eax
lea ecx, [esp + 0x84]
mov dword [esp + 0x268], edi
mov dword [esp + 0x84], esi
call fcn.1002e8b0
lea ecx, [esp + 0xf4]
mov dword [esp + 0x264], 1
mov dword [esp + 0x10c], 0x40
call fcn.1002f830
lea ecx, [esp + 0x10c]
mov byte [esp + 0x264], 2
push ecx
lea ecx, [esp + 0xf4]
mov dword [esp + 0xf4], esi
call fcn.1002e8b0
lea ecx, [esp + 0xc4]
mov byte [esp + 0x264], 3
mov dword [esp + 0xe8], 0x20
call fcn.1002f830
lea edx, [esp + 0xe8]
lea ecx, [esp + 0xc0]
push edx
mov byte [esp + 0x268], 4
mov dword [esp + 0xc4], esi
call fcn.1002e8b0
mov eax, dword [ebp + 0x64]
lea ebx, [ebp + 0x64]
mov ecx, ebx
mov byte [esp + 0x264], 5
call dword [eax + 4]
lea ecx, [esp + 0x17c]
mov dword [esp + 0x38], eax
call fcn.1002f9c0
lea ecx, [esp + 0x38]
mov esi, 0x98386281
push ecx
lea ecx, [esp + 0x180]
mov byte [esp + 0x268], 6
mov dword [esp + 0x198], esi
mov dword [esp + 0x19c], edi
mov dword [esp + 0x180], 0x10058b84
call fcn.1002ebd0
mov eax, 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x264], 7
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
call fcn.1002fc10
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x3c]
push edx
mov byte [esp + 0x268], 8
mov word [esp + 0x58], 0x6281
mov dword [esp + 0x5c], edi
mov dword [esp + 0x40], 0x10058b78
call fcn.1002ec80
mov eax, dword [esp + 0x26c]
mov byte [esp + 0x264], 9
cmp eax, edi
je 0x1002d4fb
mov eax, dword [esp + 0x278]
mov ecx, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [esp + 0x28], eax
sub eax, ecx
lea ecx, [esp + 0x19c]
mov dword [esp + 0x10], eax
call fcn.1002f9c0
lea ecx, [esp + 0x10]
mov byte [esp + 0x264], 0xa
push ecx
lea ecx, [esp + 0x1a0]
mov dword [esp + 0x1b8], esi
mov dword [esp + 0x1bc], edi
mov dword [esp + 0x1a0], 0x10058b84
call fcn.1002ebd0
mov edx, dword [esp + 0x19c]
lea ecx, [esp + 0x19c]
mov byte [esp + 0x264], 0xb
call dword [edx + 4]
lea ecx, [esp + 0x130]
mov dword [esp + 0x108], eax
call fcn.1002fea0
lea eax, [esp + 0x108]
lea ecx, [esp + 0x130]
push eax
mov byte [esp + 0x268], 0xc
mov dword [esp + 0x14c], esi
mov dword [esp + 0x150], edi
mov dword [esp + 0x134], 0x10058b6c
call fcn.1002ed40
mov byte [esp + 0x264], 0xd
call fcn.100014ad
mov esi, dword [esp + 0x270]
mov ecx, ebx
mov dword [esi], eax
mov edx, dword [ebx]
call dword [edx + 4]
cmp eax, edi
je 0x1002c85a
mov edx, dword [esi]
lea eax, [esp + 0x14]
and edx, 0xffffff
push eax
mov dword [esi], edx
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x40]
mov dword [esp + 0x18], 1
call dword [edx + 8]
jmp 0x1002c8a9
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x18], edi
call dword [edx + 8]
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x150], eax
mov dword [esp + 0xd8], ecx
mov dword [esp + 0x154], eax
mov dword [esp + 0xdc], ecx
mov dword [esp + 0x158], eax
mov eax, dword [esi]
mov dword [esp + 0xe0], ecx
and al, cl
mov dword [esp + 0xe4], ecx
mov dword [esi], eax
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 4]
cmp eax, edi
je 0x1002c90d
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x18], 1
call dword [edx + 8]
mov eax, dword [esp + 0x130]
lea ecx, [esp + 0x130]
call dword [eax + 4]
mov ecx, dword [esi]
imul ecx, eax
xor ecx, 0xb63f7338
mov dword [esi], ecx
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 4]
inc eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], eax
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 8]
mov edx, dword [esp + 0x278]
mov eax, dword [edx]
jmp 0x1002c96b
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x18], edi
call dword [edx + 8]
mov eax, dword [esi]
lea ecx, [esp + 0x130]
xor eax, 0xb63f7338
mov dword [esi], eax
mov eax, dword [esp + 0x130]
call dword [eax + 4]
mov ecx, dword [esi]
imul ecx, eax
mov dword [esi], ecx
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 4]
inc eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], eax
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 8]
mov edx, dword [esp + 0x19c]
lea ecx, [esp + 0x19c]
call dword [edx + 4]
mov dword [esp + 0x110], eax
mov eax, dword [esi]
lea ecx, [esp + 0x204]
mov dword [esp + 0x114], eax
push ecx
call fcn.10028c7e
lea edx, [esp + 0x114]
add esp, 4
mov dword [esp + 0x24], edx
mov dword [esp + 0x14], 2
mov eax, dword [esp + 0x24]
push 4
lea ecx, [esp + 0x208]
push eax
push ecx
call fcn.10028d0f
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x20]
add esp, 0xc
add ecx, 4
dec eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], eax
jne 0x1002c99e
lea edx, [esp + 0x204]
lea eax, [esp + 0x98]
push edx
push eax
call fcn.10028dad
mov ecx, dword [ebp + 0xb8]
add esp, 8
cmp ecx, edi
jne 0x1002c9f1
xor eax, eax
jmp 0x1002c9fc
mov eax, dword [ebp + 0xbc]
sub eax, ecx
sar eax, 2
push eax
call fcn.10001498
mov ecx, dword [esp + 0x9d]
mov edx, dword [esp + 0x9e]
xor eax, eax
and ecx, 0xff
mov ah, byte [esp + 0x9c]
and edx, 0xff
or eax, ecx
mov ecx, dword [esp + 0x9f]
shl eax, 8
or eax, edx
and ecx, 0xff
shl eax, 8
lea edx, [esp + 0x154]
or eax, ecx
push edx
push eax
mov dword [esi], eax
call fcn.1001cd5b
mov ecx, dword [esp + 0xa9]
mov edx, dword [esp + 0xaa]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0xa8]
and eax, 0xff
and ecx, 0xff
shl eax, 8
or eax, ecx
mov ecx, dword [esp + 0xab]
shl eax, 8
and edx, 0xff
and ecx, 0xff
or eax, edx
lea edx, [esp + 0x20]
shl eax, 8
or eax, ecx
push edx
push eax
mov dword [esi], eax
call fcn.10032a70
add esp, 0x14
xor eax, eax
mov ecx, eax
and ecx, 3
mov dl, byte [esp + ecx + 0x14]
mov cl, byte [esp + eax + 0x150]
xor dl, cl
mov byte [esp + eax + 0xd8], dl
inc eax
cmp eax, 0x10
jb 0x1002caa6
mov eax, dword [esp + 0xd9]
lea ecx, [esp + 0x11c]
and eax, 0xff
mov dword [esp + 0x5c], eax
call fcn.1002f830
lea ecx, [esp + 0x5c]
mov byte [esp + 0x264], 0xe
push ecx
lea ecx, [esp + 0x11c]
mov dword [esp + fcn.10032a30], 0x10058b90
call fcn.1002e8b0
mov edx, dword [esp + 0xd8]
lea ecx, [esp + 0x1c0]
and edx, 0xff
mov byte [esp + 0x264], 0xf
mov dword [esp + 0x30], edx
call fcn.1002f830
lea eax, [esp + 0x30]
lea ecx, [esp + 0x1bc]
push eax
mov byte [esp + 0x268], 0x10
mov dword [esp + fcn.10032a30], 0x10058b90
call fcn.1002e8b0
mov edx, dword [esp + 0x118]
lea ecx, [esp + 0x118]
mov byte [esp + 0x264], 0x11
call dword [edx + 4]
and al, 0xfc
lea ecx, [esp + 0xac]
mov dword [esp + 0x20], eax
call fcn.1002f830
lea eax, [esp + 0x20]
lea ecx, [esp + 0xa8]
push eax
mov byte [esp + 0x268], 0x12
mov dword [esp + 0xac], 0x10058b90
call fcn.1002e8b0
mov eax, dword [esp + 0x24]
mov byte [esp + 0x264], 0x13
cmp eax, edi
jne 0x1002d3bd
lea ecx, [esp + 0xa4]
push 4
lea edx, [esp + 0xe8]
push ecx
push edx
call fcn.10035df0
add esp, 0xc
test eax, eax
je 0x1002cbe8
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov edx, dword [ebx]
add eax, 2
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
jmp 0x1002ccb6
mov edx, dword [esp + 0x84]
lea ecx, [esp + 0x84]
call dword [edx]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xac]
lea ecx, [esp + 0xac]
call dword [eax]
cmp dword [esp + 0x14], eax
jne 0x1002cc7a
mov ecx, dword [esp + 0x278]
lea edx, [esp + 0x290]
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.10032ae0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x174], eax
lea edx, [esp + 0x174]
lea eax, [esp + 0x15c]
mov dword [esp + 0x178], ecx
push edx
push eax
lea ecx, [ebp + 0xd4]
call fcn.1002f180
lea ecx, [esp + 0x160]
lea edx, [esp + 0x15c]
push ecx
push edx
lea ecx, [esp + 0x16c]
call fcn.100300f0
jmp 0x1002ccbc
mov eax, dword [esp + 0xf4]
lea ecx, [esp + 0xf4]
call dword [eax]
mov edx, dword [esp + 0xac]
lea ecx, [esp + 0xac]
mov dword [esp + 0x14], eax
call dword [edx]
cmp dword [esp + 0x14], eax
jne 0x1002ccbc
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov edx, dword [ebx]
inc eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
mov ecx, ebx
call dword [edx + 8]
mov edx, dword [esp + 0x17c]
lea ecx, [esp + 0x17c]
call dword [edx + 4]
mov dword [esp + 0x14], eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
sub eax, dword [esp + 0x14]
cmp eax, 2
ja 0x1002d355
mov edx, dword [esp + 0x1bc]
lea ecx, [esp + 0x1bc]
call dword [edx + 4]
cmp eax, 7
mov dword [esi], eax
jbe 0x1002cdd0
lea ecx, [esp + 0xb0]
mov byte [esp + 0x264], 0x11
call fcn.1002eab0
lea ecx, [esp + 0x1c4]
mov byte [esp + 0x264], 0xf
call fcn.1002eab0
lea ecx, [esp + 0x120]
mov byte [esp + 0x264], 0xd
call fcn.1002eab0
lea ecx, [esp + 0x138]
mov byte [esp + 0x264], 0xb
call fcn.1001b930
lea ecx, [esp + 0x1a4]
mov byte [esp + 0x264], 9
call fcn.1001b930
lea ecx, [esp + 0x44]
mov byte [esp + 0x264], 7
call fcn.1002ecc0
lea ecx, [esp + 0x184]
mov byte [esp + 0x264], 5
call fcn.1001b930
lea ecx, [esp + 0xc8]
mov byte [esp + 0x264], 3
call fcn.1002eab0
lea ecx, [esp + 0xf8]
mov byte [esp + 0x264], 1
call fcn.1002eab0
lea ecx, [esp + 0x88]
mov dword [esp + 0x264], 0xffffffff
call fcn.1002eab0
xor eax, eax
jmp 0x1002d6e4
mov ecx, eax
lea esi, [esp + 0xdb]
lea edi, [esp + 0x60]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, ebp
call fcn.1002dd50
cmp ax, 1
jne 0x1002ce02
mov ecx, ebp
call fcn.1002dfc0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x10]
lea ecx, [esp + 0x3c]
push edx
call dword [eax + 8]
mov edx, dword [esp + 0xc4]
lea ecx, [esp + 0xc4]
call dword [edx]
mov esi, eax
mov eax, dword [esp + 0xac]
lea ecx, [esp + 0xac]
call dword [eax]
cmp esi, eax
jne 0x1002ce54
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x14], 0
call dword [edx + 8]
lea eax, [esp + 0x290]
lea edx, [esp + 0x10]
push eax
lea ecx, [ebp + 0xd4]
push edx
call fcn.1002f7c0
mov eax, dword [ebp + 0xd8]
mov ecx, dword [esp + 0x10]
cmp ecx, eax
je 0x1002ce92
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x30], 1
call dword [edx + 8]
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x3c]
call dword [eax + 4]
test ax, ax
jne 0x1002d1bd
mov ecx, dword [esp + 0x270]
mov edi, dword [esp + 0x288]
mov eax, dword [esp + 0x284]
lea edx, [esp + 0x14]
mov esi, dword [ecx]
mov ecx, dword [esp + 0x280]
push edx
mov edx, dword [esp + 0x280]
push edi
push eax
mov eax, dword [esp + 0x284]
push ecx
mov ecx, dword [esp + 0x284]
push edx
push eax
push ecx
lea edx, [esp + 0x7c]
push esi
push edx
push ebp
lea ecx, [esp + 0x47]
call fcn.1002d710
test ax, ax
jne 0x1002cf7e
mov ecx, dword [esp + 0x284]
mov edx, dword [esp + 0x280]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x280]
push edi
push ecx
mov ecx, dword [esp + 0x284]
push edx
mov edx, dword [esp + 0x284]
push eax
push ecx
push edx
lea eax, [esp + 0x7c]
push esi
push eax
push ebp
lea ecx, [esp + 0x47]
call fcn.1002da10
test ax, ax
jne 0x1002cf7e
mov edx, dword [esp + 0x284]
mov eax, dword [esp + 0x280]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x280]
push edi
push edx
mov edx, dword [esp + 0x284]
push eax
mov eax, dword [esp + 0x284]
push ecx
push edx
push eax
lea ecx, [esp + 0x7c]
push esi
push ecx
push ebp
lea ecx, [esp + 0x47]
call fcn.1002d890
mov esi, 1
cmp ax, si
jne 0x1002d199
mov edx, dword [esp + 0x14]
lea eax, [edx - 1]
cmp eax, 3
ja case.default.0x1002cf9c
jmp dword [eax*4 + 0x1002d700]
inc dword [ebp + 0x34]
jmp 0x1002cfb5
inc dword [ebp + 0x40]
jmp 0x1002cfb5
inc dword [ebp + 0x38]
jmp 0x1002cfb5
inc dword [ebp + 0x3c]
mov eax, dword [esp + 0x26c]
cmp dword [eax], 0
jne 0x1002cfc8
mov ecx, dword [esp + 0x28]
inc ecx
mov dword [eax], ecx
mov ecx, dword [esp + 0x278]
mov edx, dword [esp + 0x28]
mov eax, dword [ecx]
mov edi, eax
and edi, 0xfffffff0
cmp edx, eax
jne 0x1002cfe9
mov edx, dword [esp + 0x270]
add eax, dword [edx]
mov dword [ecx], eax
mov eax, dword [ebp + 0x14]
lea esi, [ebp + 0x14]
mov ecx, esi
call dword [eax + 4]
mov edx, dword [esi]
inc eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call dword [edx + 8]
mov edx, dword [esp + 0xc4]
lea ecx, [esp + 0xc4]
call dword [edx]
mov esi, eax
mov eax, dword [esp + 0xac]
lea ecx, [esp + 0xac]
call dword [eax]
cmp esi, eax
jne 0x1002d1bd
mov ecx, dword [esp + 0x278]
mov edx, dword [ecx]
lea ecx, [esp + 0x6c]
sub edx, edi
mov dword [esp + 0x10], edx
call fcn.1002f830
lea eax, [esp + 0x10]
mov esi, 0x10058b90
push eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0x268], 0x14
mov dword [esp + 0x6c], esi
call fcn.1002e8b0
mov edx, dword [esp + 0x68]
lea ecx, [esp + 0x68]
mov byte [esp + 0x264], 0x15
call dword [edx + 4]
cmp eax, 0xf
jae 0x1002d17b
lea eax, [esp + 0x164]
push 0x10
push eax
push edi
call fcn.1001cd43
add esp, 0xc
test eax, eax
jne 0x1002d17b
lea ecx, [esp + 0x1f0]
mov dword [esp + 0x2c], 0xcc
call fcn.1002f830
lea ecx, [esp + 0x2c]
mov byte [esp + 0x264], 0x16
push ecx
lea ecx, [esp + 0x1f0]
mov dword [esp + 0x1f0], esi
call fcn.1002e8b0
mov edx, dword [esp + 0x68]
lea ecx, [esp + 0x68]
mov byte [esp + 0x264], 0x17
call dword [edx + 4]
xor ecx, ecx
mov cl, byte [esp + eax + 0x164]
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x1d8]
call fcn.1002f830
lea edx, [esp + 0x38]
lea ecx, [esp + 0x1d4]
push edx
mov byte [esp + 0x268], 0x18
mov dword [esp + 0x1d8], esi
call fcn.1002e8b0
mov eax, dword [esp + 0x1f0]
lea ecx, [esp + 0x1f0]
mov byte [esp + 0x264], 0x19
call dword [eax]
mov edx, dword [esp + 0x1d8]
lea ecx, [esp + 0x1d8]
mov esi, eax
call dword [edx]
cmp esi, eax
jne 0x1002d153
mov dword [esp + 0x24], 3
lea ecx, [esp + 0x1dc]
mov byte [esp + 0x264], 0x17
call fcn.1002eab0
lea ecx, [esp + 0x1f4]
mov byte [esp + 0x264], 0x15
call fcn.1002eab0
lea ecx, [esp + 0x70]
mov byte [esp + 0x264], 0x13
call fcn.1002eab0
jmp 0x1002d1bd
lea eax, [esp + 0x10]
mov dword [esp + 0x10], esi
push eax
jmp 0x1002d1b2
mov eax, dword [ebp + 8]
lea ecx, [ebp + 8]
call dword [eax + 8]
cmp eax, 0x67349425
jne 0x1002d1bd
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], esi
push ecx
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x40]
call dword [edx + 8]
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x3c]
call dword [eax + 4]
cmp ax, 1
jne 0x1002d33b
mov edx, dword [ebp + 0x44]
lea esi, [ebp + 0x44]
mov ecx, esi
call dword [edx + 4]
inc eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 8]
mov edx, dword [esp + 0x118]
lea ecx, [esp + 0x118]
call dword [edx + 4]
mov ecx, dword [esp + 0x28]
and eax, 3
sub ecx, eax
lea eax, [esp + 0x290]
mov esi, ecx
lea ecx, [esp + 0x14]
push eax
push ecx
lea ecx, [ebp + 0xd4]
mov dword [esp + 0x30], esi
call fcn.1002f7c0
mov eax, dword [ebp + 0xd8]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
je 0x1002d2ff
mov edx, dword [esp + 0x84]
lea ecx, [esp + 0x84]
call dword [edx]
mov edi, eax
mov eax, dword [esp + 0xac]
lea ecx, [esp + 0xac]
call dword [eax]
cmp edi, eax
je 0x1002d2ff
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1f]
push eax
mov edi, dword [ecx + 0x10]
lea ecx, [esp + 0x3b]
mov edx, edi
mov esi, edi
and edx, 0xf
push ecx
lea ecx, [esp + 0x78]
and esi, 0xfffffff0
mov dword [esp + 0x18], edx
mov dword [esp + 0x74], 0x100587d8
call fcn.10030590
mov dword [esp + 0x6c], 0x10058b64
lea edx, [esp + 0x10]
lea ecx, [esp + 0x68]
push edx
mov byte [esp + 0x268], 0x1a
mov dword [esp + 0x6c], 0x10058b90
call fcn.1002e8b0
lea eax, [esp + 0x164]
push 0x10
push eax
push esi
mov byte [esp + 0x270], 0x1b
call fcn.1001cd43
mov edx, dword [esp + 0x74]
add esp, 0xc
lea ecx, [esp + 0x68]
call dword [edx + 4]
cmp byte [esp + eax + 0x164], 0xeb
je 0x1002d2ec
mov edi, dword [esp + 0x28]
lea ecx, [esp + 0x70]
mov byte [esp + 0x264], 0x13
call fcn.1002eab0
jmp 0x1002d31a
mov eax, esi
lea ecx, [esp + 0x164]
and al, 0xf0
push 0x10
push ecx
push eax
call fcn.1001cd43
mov edi, dword [esp + 0x34]
add esp, 0xc
mov edx, dword [esp + 0x278]
mov eax, dword [esp + 0x270]
mov dword [edx], edi
mov ecx, dword [eax]
lea edx, [esp + 0x60]
push ecx
push edx
push edi
call fcn.1001cd2b
add esp, 0xc
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov edx, dword [ebx]
dec eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
mov ecx, ebx
call dword [edx + 8]
xor edi, edi
mov edx, dword [esp + 0x84]
lea ecx, [esp + 0x84]
call dword [edx]
mov esi, eax
mov eax, dword [esp + 0x11c]
lea ecx, [esp + 0x11c]
call dword [eax]
cmp esi, eax
je 0x1002d48d
lea ecx, [esp + 0x290]
lea esi, [ebp + 0xd4]
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.1002f7c0
mov ebp, dword [ebp + 0xd8]
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x1002d48d
push eax
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call fcn.1002f3c0
jmp 0x1002d48d
mov eax, dword [ebp + 0xb8]
mov edx, dword [esp + 0x28]
cmp eax, edi
mov dword [esp + 0x10], edx
je 0x1002d3df
mov ecx, dword [ebp + 0xbc]
sub ecx, eax
sar ecx, 2
cmp ecx, 0x64
jae 0x1002d415
mov eax, dword [ebp + 0xb8]
mov ecx, dword [ebp + 0xbc]
cmp eax, ecx
je 0x1002d3fe
cmp dword [eax], edx
je 0x1002d3fa
add eax, 4
cmp eax, ecx
jne 0x1002d3ef
cmp eax, ecx
jne 0x1002d415
mov eax, dword [ebp + 0xbc]
lea ecx, [ebp + 0xb4]
lea edx, [esp + 0x10]
push edx
push eax
call fcn.1002efb0
mov ecx, dword [ebp + 0xb0]
mov eax, 4
cmp ecx, eax
mov dword [esp + 0x14], edi
jb 0x1002d455
mov edx, dword [ebp + 0x90]
mov esi, dword [ebp + 0xb0]
lea ecx, [ebp + 0x84]
add edx, eax
dec esi
mov eax, edx
mov dword [ecx + 0xc], edx
mov edx, esi
cmp edx, edi
mov dword [ecx + 0x2c], esi
je 0x1002d450
cmp eax, dword [ecx + 8]
jne 0x1002d455
call fcn.1002ef20
lea eax, [esp + 0x14]
lea ecx, [ebp + 0x84]
push eax
call fcn.1002e1d0
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x1002d475
push eax
mov ecx, ebp
call fcn.1002e010
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 4]
dec eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 8]
lea ecx, [esp + 0xb0]
mov byte [esp + 0x264], 0x11
call fcn.1002eab0
lea ecx, [esp + 0x1c4]
mov byte [esp + 0x264], 0xf
call fcn.1002eab0
lea ecx, [esp + 0x120]
mov byte [esp + 0x264], 0xd
call fcn.1002eab0
mov edx, dword [esp + 0x13c]
push edx
call fcn.10034d76
mov eax, dword [esp + 0x1ac]
mov dword [esp + 0x140], edi
push eax
mov dword [esp + 0x148], edi
mov dword [esp + 0x14c], edi
call fcn.10034d76
add esp, 8
mov ecx, dword [esp + 0x48]
push ecx
call fcn.10034d76
mov edx, dword [esp + 0x18c]
mov dword [esp + 0x4c], edi
push edx
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
call fcn.10034d76
mov eax, dword [esp + 0xd4]
add esp, 8
lea ecx, [esp + 0x20]
mov dword [esp + 0x188], edi
push eax
push ecx
lea ecx, [esp + 0xd0]
mov dword [esp + 0x194], edi
mov dword [esp + 0x198], edi
mov byte [esp + 0x26c], 3
call fcn.1002f170
mov edx, dword [eax]
lea eax, [esp + 0x34]
push edx
push eax
lea ecx, [esp + 0xd4]
call fcn.1002f8f0
mov ecx, dword [esp + 0xcc]
push ecx
call fcn.10034d76
add esp, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0xcc], edi
mov dword [esp + 0xd4], edi
xor esi, esi
call fcn.10041c95
mov eax, dword [0x1008acb4]
dec eax
mov dword [0x1008acb4], eax
jne 0x1002d5ad
mov esi, dword [0x1008acb0]
mov dword [0x1008acb0], edi
lea ecx, [esp + 0x20]
call fcn.10041d31
cmp esi, edi
je 0x1002d5c3
push esi
call fcn.10034d76
add esp, 4
mov edx, dword [esp + 0xfc]
lea eax, [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0x100]
mov byte [esp + 0x26c], 1
call fcn.1002f170
mov ecx, dword [eax]
lea edx, [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x104]
call fcn.1002f8f0
mov eax, dword [esp + 0xfc]
push eax
call fcn.10034d76
add esp, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0xfc], edi
mov dword [esp + 0x104], edi
xor esi, esi
call fcn.10041c95
mov eax, dword [0x1008acb4]
dec eax
mov dword [0x1008acb4], eax
jne 0x1002d63a
mov esi, dword [0x1008acb0]
mov dword [0x1008acb0], edi
lea ecx, [esp + 0x20]
call fcn.10041d31
cmp esi, edi
je 0x1002d650
push esi
call fcn.10034d76
add esp, 4
mov ecx, dword [esp + 0x8c]
lea edx, [esp + 0x30]
push ecx
push edx
lea ecx, [esp + 0x90]
mov dword [esp + 0x26c], 0xffffffff
call fcn.1002f170
mov eax, dword [eax]
lea ecx, [esp + 0x60]
push eax
push ecx
lea ecx, [esp + 0x94]
call fcn.1002f8f0
mov edx, dword [esp + 0x8c]
push edx
call fcn.10034d76
add esp, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0x8c], edi
mov dword [esp + 0x94], edi
xor esi, esi
call fcn.10041c95
mov eax, dword [0x1008acb4]
dec eax
mov dword [0x1008acb4], eax
jne 0x1002d6ca
mov esi, dword [0x1008acb0]
mov dword [0x1008acb0], edi
lea ecx, [esp + 0x20]
call fcn.10041d31
cmp esi, edi
je 0x1002d6e0
push esi
call fcn.10034d76
add esp, 4
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x25c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x258
ret 0x28