Function at 0x479960
Capabilities:
Enumerate pe sections
Get thread local storage value
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
mov edx, dword [ecx + eax*4 - 4]
mov eax, dword [edi]
lea esi, [edi + 4]
lea ecx, [edx + eax - 0x80]
mov eax, dword [esp + 0x14]
cmp eax, ecx
je 0x479a61
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov edx, dword [ecx + 0xc]
mov dword [eax + 0xc], edx
mov edx, dword [ecx + 0x10]
mov dword [eax + 0x10], edx
mov edx, dword [ecx + 0x14]
mov dword [eax + 0x14], edx
mov edx, dword [ecx + 0x18]
mov dword [eax + 0x18], edx
mov edx, dword [ecx + 0x1c]
mov dword [eax + 0x1c], edx
mov edx, dword [ecx + 0x20]
mov dword [eax + 0x20], edx
mov edx, dword [ecx + 0x24]
mov dword [eax + 0x24], edx
mov edx, dword [ecx + 0x28]
mov dword [eax + 0x28], edx
mov edx, dword [ecx + 0x2c]
mov dword [eax + 0x2c], edx
mov edx, dword [ecx + 0x30]
mov dword [eax + 0x30], edx
mov edx, dword [ecx + 0x34]
mov dword [eax + 0x34], edx
mov edx, dword [ecx + 0x38]
mov dword [eax + 0x38], edx
mov edx, dword [ecx + 0x3c]
mov dword [eax + 0x3c], edx
mov edx, dword [ecx + 0x40]
mov dword [eax + 0x40], edx
mov edx, dword [ecx + 0x44]
mov dword [eax + 0x44], edx
mov edx, dword [ecx + 0x48]
mov dword [eax + 0x48], edx
mov edx, dword [ecx + 0x4c]
mov dword [eax + 0x4c], edx
mov edx, dword [ecx + 0x50]
mov dword [eax + 0x50], edx
mov edx, dword [ecx + 0x54]
mov dword [eax + 0x54], edx
mov edx, dword [ecx + 0x58]
mov dword [eax + 0x58], edx
mov edx, dword [ecx + 0x5c]
mov dword [eax + 0x5c], edx
mov edx, dword [ecx + 0x60]
mov dword [eax + 0x60], edx
mov edx, dword [ecx + 0x64]
mov dword [eax + 0x64], edx
mov edx, dword [ecx + 0x68]
mov dword [eax + 0x68], edx
mov edx, dword [ecx + 0x6c]
mov dword [eax + 0x6c], edx
mov edx, dword [ecx + 0x70]
mov dword [eax + 0x70], edx
mov edx, dword [ecx + 0x74]
mov dword [eax + 0x74], edx
mov edx, dword [ecx + 0x78]
mov dword [eax + 0x78], edx
mov ecx, dword [ecx + 0x7c]
mov dword [eax + 0x7c], ecx
movzx edx, word [eax + 4]
mov ebx, dword [eax + 0x10]
movzx ecx, word [eax + 6]
mov ebx, dword [ebx + 0x4c]
mov dword [ebx + edx*8], eax
mov edx, dword [eax + 0x14]
mov edx, dword [edx + 0x4c]
movzx ecx, cx
mov dword [edx + ecx*8], eax
add dword [edi], 0xffffff80
jne 0x479a95
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov ebx, dword [ecx + eax*4 - 4]
add dword [esi + 4], 0xffffffff
mov edx, dword [0x4c6060]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0x27
push 0x200
push ebx
mov ecx, eax
call fcn.004023e0
mov dword [edi], 0x200
mov edx, dword [esi + 8]
test edx, edx
js 0x479af9
mov eax, dword [esi + 4]
add eax, 3
mov ecx, eax
shr ecx, 0x10
or eax, ecx
mov ecx, eax
shr ecx, 8
or eax, ecx
mov ecx, eax
shr ecx, 4
or eax, ecx
mov ecx, eax
shr ecx, 2
or eax, ecx
mov ecx, eax
shr ecx, 1
or ecx, eax
add ecx, 1
cmp ecx, 1
jge 0x479ae1
push 1
lea edx, [esi + 0xc]
push edx
push 4
push esi
call fcn.004027d0
add esp, 0x10
pop edi
pop esi
pop ebx
ret
and edx, 0x3fffffff
cmp ecx, edx
jge 0x479af9
push ecx
push 0
push 4
push esi
call fcn.004027d0
add esp, 0x10
pop edi
pop esi
pop ebx
ret