Function at 0x4cfa50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xbc
push esi
mov esi, dword [esp + 0xc4]
cmp byte [esi], 1
push edi
mov edi, dword [esi + 0xc]
je 0x4cfa72
push 1
push esi
call fcn.004ce160
add esp, 8
lea eax, [edi*8 + 0x20]
push eax
lea ecx, [esi + 0x40]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.004ed460
mov eax, dword [esp + 0xe4]
add esp, 0xc
test eax, eax
jle 0x4d053d
mov edx, dword [esp + 0xd4]
add eax, 0xffffffff
shr eax, 7
add eax, 1
push ebx
mov dword [esp + 0x24], eax
push ebp
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov ebp, dword [edx + 8]
mov edx, dword [edx + 0xc]
xor edx, dword [esp + 0x48]
xor ecx, dword [esp + 0x3c]
xor eax, dword [esp + 0x40]
mov dword [esp + 0x1c], edx
mov edx, ecx
shr edx, 0x10
movzx edx, dl
mov edi, dword [esi + edx*8 + 0x8e0]
xor ebp, dword [esp + 0x44]
mov edx, ecx
shr edx, 8
movzx edx, dl
mov ebx, ecx
shr ebx, 0x18
xor edi, dword [esi + ebx*8 + 0x8e4]
mov ebx, eax
xor edi, dword [esi + edx*8 + 0xe4]
shr ebx, 0x18
movzx edx, cl
xor edi, dword [esi + edx*8 + 0xe0]
mov edx, eax
shr edx, 8
movzx edx, dl
mov edx, dword [esi + edx*8 + 0x8e0]
xor edx, dword [esi + ebx*8 + 0xe0]
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
xor edx, dword [esi + ebx*8 + 0x8e4]
mov ebx, dword [esp + 0xc8]
mov dword [esp + 0x24], eax
movzx eax, al
xor edx, dword [esi + eax*8 + 0xe4]
mov eax, dword [esp + 0xc4]
rol ebp, 1
add eax, edx
lea edx, [ebx + edx*2]
add eax, edi
xor ebp, eax
mov eax, ebp
add edx, edi
xor edx, dword [esp + 0x1c]
mov ebx, eax
shr ebx, 0x10
movzx edi, bl
mov edi, dword [esi + edi*8 + 0x8e0]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [esi + ebx*8 + 0x8e4]
mov ebx, eax
shr ebx, 8
movzx ebx, bl
xor edi, dword [esi + ebx*8 + 0xe4]
ror edx, 1
movzx ebx, al
xor edi, dword [esi + ebx*8 + 0xe0]
mov ebx, edx
shr ebx, 8
movzx ebx, bl
mov ebp, edx
shr ebp, 0x18
mov dword [esp + 0x14], ebp
mov ebp, dword [esi + ebx*8 + 0x8e0]
mov ebx, dword [esp + 0x14]
xor ebp, dword [esi + ebx*8 + 0xe0]
mov ebx, edx
shr ebx, 0x10
movzx ebx, bl
xor ebp, dword [esi + ebx*8 + 0x8e4]
movzx ebx, dl
xor ebp, dword [esi + ebx*8 + 0xe4]
mov ebx, dword [esp + 0xbc]
add ebx, ebp
rol ecx, 1
add ebx, edi
xor ecx, ebx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0xc0]
lea ebx, [ecx + ebp*2]
mov ecx, dword [esp + 0x20]
mov ebp, dword [esp + 0x20]
shr ecx, 0x10
movzx ecx, cl
shr ebp, 0x18
add ebx, edi
mov edi, dword [esi + ecx*8 + 0x8e0]
xor edi, dword [esi + ebp*8 + 0x8e4]
mov ecx, dword [esp + 0x20]
xor ebx, dword [esp + 0x24]
shr ecx, 8
movzx ecx, cl
xor edi, dword [esi + ecx*8 + 0xe4]
movzx ecx, byte [esp + 0x20]
xor edi, dword [esi + ecx*8 + 0xe0]
ror ebx, 1
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov ebp, ebx
shr ebp, 0x18
mov dword [esp + 0x14], ebp
mov ebp, dword [esi + ecx*8 + 0x8e0]
mov ecx, dword [esp + 0x14]
xor ebp, dword [esi + ecx*8 + 0xe0]
mov ecx, ebx
shr ecx, 0x10
movzx ecx, cl
xor ebp, dword [esi + ecx*8 + 0x8e4]
movzx ecx, bl
xor ebp, dword [esi + ecx*8 + 0xe4]
mov ecx, dword [esp + 0xb4]
add ecx, ebp
add ecx, edi
rol eax, 1
xor eax, ecx
mov ecx, eax
mov eax, dword [esp + 0xb8]
lea eax, [eax + ebp*2]
add eax, edi
xor eax, edx
mov edx, ecx
shr edx, 0x10
movzx edx, dl
mov edi, dword [esi + edx*8 + 0x8e0]
mov edx, ecx
shr edx, 8
movzx edx, dl
mov ebp, ecx
shr ebp, 0x18
xor edi, dword [esi + ebp*8 + 0x8e4]
ror eax, 1
xor edi, dword [esi + edx*8 + 0xe4]
movzx edx, cl
xor edi, dword [esi + edx*8 + 0xe0]
mov edx, eax
shr edx, 8
movzx edx, dl
mov ebp, eax
shr ebp, 0x18
mov dword [esp + 0x14], ebp
mov ebp, dword [esi + edx*8 + 0x8e0]
mov edx, dword [esp + 0x14]
xor ebp, dword [esi + edx*8 + 0xe0]
mov edx, eax
shr edx, 0x10
movzx edx, dl
xor ebp, dword [esi + edx*8 + 0x8e4]
movzx edx, al
xor ebp, dword [esi + edx*8 + 0xe4]
mov edx, dword [esp + 0x20]
rol edx, 1
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0xac]
mov dword [esp + 0x14], ebp
add ebp, edx
mov edx, dword [esp + 0x10]
add ebp, edi
xor edx, ebp
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0xb0]
lea edx, [edx + ebp*2]
add edx, edi
xor edx, ebx
mov ebx, dword [esp + 0x20]
shr ebx, 0x10
movzx edi, bl
mov edi, dword [esi + edi*8 + 0x8e0]
mov ebx, dword [esp + 0x20]
shr ebx, 0x18
xor edi, dword [esi + ebx*8 + 0x8e4]
mov ebx, dword [esp + 0x20]
shr ebx, 8
movzx ebx, bl
xor edi, dword [esi + ebx*8 + 0xe4]
movzx ebx, byte [esp + 0x20]
xor edi, dword [esi + ebx*8 + 0xe0]
ror edx, 1
mov ebx, edx
shr ebx, 8
movzx ebx, bl
mov ebp, edx
shr ebp, 0x18
mov dword [esp + 0x10], ebp
mov ebp, dword [esi + ebx*8 + 0x8e0]
mov ebx, dword [esp + 0x10]
xor ebp, dword [esi + ebx*8 + 0xe0]
mov ebx, edx
shr ebx, 0x10
movzx ebx, bl
xor ebp, dword [esi + ebx*8 + 0x8e4]
movzx ebx, dl
xor ebp, dword [esi + ebx*8 + 0xe4]
mov ebx, dword [esp + 0xa4]
add ebx, ebp
add ebx, edi
rol ecx, 1
xor ecx, ebx
mov ebx, dword [esp + 0xa8]
lea ebx, [ebx + ebp*2]
add ebx, edi
xor ebx, eax
mov eax, ecx
shr eax, 0x10
movzx eax, al
mov edi, dword [esi + eax*8 + 0x8e0]
mov eax, ecx
shr eax, 8
movzx eax, al
mov ebp, ecx
shr ebp, 0x18
xor edi, dword [esi + ebp*8 + 0x8e4]
ror ebx, 1
xor edi, dword [esi + eax*8 + 0xe4]
movzx eax, cl
xor edi, dword [esi + eax*8 + 0xe0]
mov eax, ebx
shr eax, 8
movzx eax, al
mov ebp, ebx
shr ebp, 0x18
mov dword [esp + 0x10], ebp
mov ebp, dword [esi + eax*8 + 0x8e0]
mov eax, dword [esp + 0x10]
xor ebp, dword [esi + eax*8 + 0xe0]
mov eax, ebx
shr eax, 0x10
movzx eax, al
xor ebp, dword [esi + eax*8 + 0x8e4]
movzx eax, bl
xor ebp, dword [esi + eax*8 + 0xe4]
mov eax, dword [esp + 0x20]
rol eax, 1
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x14], ebp
add ebp, eax
mov eax, dword [esp + 0x10]
add ebp, edi
xor eax, ebp
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xa0]
lea eax, [eax + ebp*2]
mov ebp, dword [esp + 0x20]
add eax, edi
xor eax, edx
mov edx, dword [esp + 0x20]
shr edx, 0x10
movzx edx, dl
mov edi, dword [esi + edx*8 + 0x8e0]
mov edx, dword [esp + 0x20]
shr edx, 8
shr ebp, 0x18
xor edi, dword [esi + ebp*8 + 0x8e4]
movzx edx, dl
xor edi, dword [esi + edx*8 + 0xe4]
movzx edx, byte [esp + 0x20]
xor edi, dword [esi + edx*8 + 0xe0]
ror eax, 1
mov edx, eax
shr edx, 8
movzx edx, dl
mov ebp, eax
shr ebp, 0x18
mov dword [esp + 0x10], ebp
mov ebp, dword [esi + edx*8 + 0x8e0]
mov edx, dword [esp + 0x10]
xor ebp, dword [esi + edx*8 + 0xe0]
mov edx, eax
shr edx, 0x10
movzx edx, dl
xor ebp, dword [esi + edx*8 + 0x8e4]
movzx edx, al
xor ebp, dword [esi + edx*8 + 0xe4]
mov edx, dword [esp + 0x94]
add edx, ebp
add edx, edi
rol ecx, 1
xor ecx, edx
mov edx, dword [esp + 0x98]
lea edx, [edx + ebp*2]
add edx, edi
xor edx, ebx
mov ebx, ecx
shr ebx, 0x10
movzx edi, bl
mov edi, dword [esi + edi*8 + 0x8e0]
mov ebx, ecx
shr ebx, 0x18
xor edi, dword [esi + ebx*8 + 0x8e4]
mov ebx, ecx
shr ebx, 8
movzx ebx, bl
xor edi, dword [esi + ebx*8 + 0xe4]
ror edx, 1
movzx ebx, cl
xor edi, dword [esi + ebx*8 + 0xe0]
mov ebx, edx
shr ebx, 8
movzx ebx, bl
mov ebp, edx
shr ebp, 0x18
mov dword [esp + 0x10], ebp
mov ebp, dword [esi + ebx*8 + 0x8e0]
mov ebx, dword [esp + 0x10]
xor ebp, dword [esi + ebx*8 + 0xe0]
mov ebx, edx
shr ebx, 0x10
movzx ebx, bl
xor ebp, dword [esi + ebx*8 + 0x8e4]
movzx ebx, dl
xor ebp, dword [esi + ebx*8 + 0xe4]
mov ebx, dword [esp + 0x20]
rol ebx, 1
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x8c]
mov dword [esp + 0x14], ebp
add ebp, ebx
add ebp, edi
mov ebx, dword [esp + 0x10]
xor ebx, ebp
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x90]
lea ebx, [ebx + ebp*2]
mov ebp, dword [esp + 0x20]
add ebx, edi
xor ebx, eax
mov eax, dword [esp + 0x20]
shr eax, 0x10
movzx eax, al
mov edi, dword [esi + eax*8 + 0x8e0]
mov eax, dword [esp + 0x20]
shr eax, 8
shr ebp, 0x18
xor edi, dword [esi + ebp*8 + 0x8e4]
movzx eax, al
xor edi, dword [esi + eax*8 + 0xe4]
movzx eax, byte [esp + 0x20]
xor edi, dword [esi + eax*8 + 0xe0]
ror ebx, 1
mov eax, ebx
shr eax, 8
movzx eax, al
mov ebp, ebx
shr ebp, 0x18
mov dword [esp + 0x10], ebp
mov ebp, dword [esi + eax*8 + 0x8e0]
mov eax, dword [esp + 0x10]
xor ebp, dword [esi + eax*8 + 0xe0]
mov eax, ebx
shr eax, 0x10
movzx eax, al
xor ebp, dword [esi + eax*8 + 0x8e4]
movzx eax, bl
xor ebp, dword [esi + eax*8 + 0xe4]
mov eax, dword [esp + 0x84]
add eax, ebp
add eax, edi
rol ecx, 1
xor ecx, eax
mov eax, dword [esp + 0x88]
lea eax, [eax + ebp*2]
add eax, edi
xor eax, edx
mov edx, ecx
shr edx, 0x10
movzx edx, dl
mov edi, dword [esi + edx*8 + 0x8e0]
mov edx, ecx
shr edx, 8
movzx edx, dl
mov ebp, ecx
shr ebp, 0x18
xor edi, dword [esi + ebp*8 + 0x8e4]
ror eax, 1
xor edi, dword [esi + edx*8 + 0xe4]
movzx edx, cl
xor edi, dword [esi + edx*8 + 0xe0]
mov edx, eax
shr edx, 8
movzx edx, dl
mov ebp, eax
shr ebp, 0x18
mov dword [esp + 0x10], ebp
mov ebp, dword [esi + edx*8 + 0x8e0]
mov edx, dword [esp + 0x10]
xor ebp, dword [esi + edx*8 + 0xe0]
mov edx, eax
shr edx, 0x10
movzx edx, dl
xor ebp, dword [esi + edx*8 + 0x8e4]
movzx edx, al
xor ebp, dword [esi + edx*8 + 0xe4]
mov edx, dword [esp + 0x20]
rol edx, 1
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x14], ebp
add ebp, edx
mov edx, dword [esp + 0x10]
add ebp, edi
xor edx, ebp
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x80]
lea edx, [edx + ebp*2]
add edx, edi
xor edx, ebx
mov ebx, dword [esp + 0x20]
shr ebx, 0x10
movzx edi, bl
mov edi, dword [esi + edi*8 + 0x8e0]
mov ebx, dword [esp + 0x20]
shr ebx, 0x18
xor edi, dword [esi + ebx*8 + 0x8e4]
mov ebx, dword [esp + 0x20]
shr ebx, 8
movzx ebx, bl
xor edi, dword [esi + ebx*8 + 0xe4]
movzx ebx, byte [esp + 0x20]
xor edi, dword [esi + ebx*8 + 0xe0]
ror edx, 1
mov ebx, edx
shr ebx, 8
movzx ebx, bl
mov ebp, edx
shr ebp, 0x18
mov dword [esp + 0x10], ebp
mov ebp, dword [esi + ebx*8 + 0x8e0]
mov ebx, dword [esp + 0x10]
xor ebp, dword [esi + ebx*8 + 0xe0]
mov ebx, edx
shr ebx, 0x10
movzx ebx, bl
xor ebp, dword [esi + ebx*8 + 0x8e4]
movzx ebx, dl
xor ebp, dword [esi + ebx*8 + 0xe4]
mov ebx, dword [esp + 0x74]
add ebx, ebp
add ebx, edi
rol ecx, 1
xor ecx, ebx
mov ebx, dword [esp + 0x78]
lea ebx, [ebx + ebp*2]
add ebx, edi
xor ebx, eax
mov eax, ecx
shr eax, 0x10
movzx eax, al
mov edi, dword [esi + eax*8 + 0x8e0]
mov eax, ecx
shr eax, 8
movzx eax, al
mov ebp, ecx
shr ebp, 0x18
xor edi, dword [esi + ebp*8 + 0x8e4]
ror ebx, 1
xor edi, dword [esi + eax*8 + 0xe4]
movzx eax, cl
xor edi, dword [esi + eax*8 + 0xe0]
mov eax, ebx
shr eax, 8
movzx eax, al
mov ebp, ebx
shr ebp, 0x18
mov dword [esp + 0x10], ebp
mov ebp, dword [esi + eax*8 + 0x8e0]
mov eax, dword [esp + 0x10]
xor ebp, dword [esi + eax*8 + 0xe0]
mov eax, ebx
shr eax, 0x10
movzx eax, al
xor ebp, dword [esi + eax*8 + 0x8e4]
movzx eax, bl
xor ebp, dword [esi + eax*8 + 0xe4]
mov eax, dword [esp + 0x20]
rol eax, 1
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x14], ebp
add ebp, eax
mov eax, dword [esp + 0x10]
add ebp, edi
xor eax, ebp
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x70]
lea eax, [eax + ebp*2]
mov ebp, dword [esp + 0x20]
add eax, edi
xor eax, edx
mov edx, dword [esp + 0x20]
shr edx, 0x10
movzx edx, dl
mov edi, dword [esi + edx*8 + 0x8e0]
mov edx, dword [esp + 0x20]
shr edx, 8
movzx edx, dl
shr ebp, 0x18
xor edi, dword [esi + ebp*8 + 0x8e4]
ror eax, 1
xor edi, dword [esi + edx*8 + 0xe4]
movzx edx, byte [esp + 0x20]
xor edi, dword [esi + edx*8 + 0xe0]
mov edx, eax
shr edx, 8
movzx edx, dl
mov ebp, eax
shr ebp, 0x18
mov dword [esp + 0x10], ebp
mov ebp, dword [esi + edx*8 + 0x8e0]
mov edx, dword [esp + 0x10]
xor ebp, dword [esi + edx*8 + 0xe0]
mov edx, eax
shr edx, 0x10
movzx edx, dl
xor ebp, dword [esi + edx*8 + 0x8e4]
movzx edx, al
xor ebp, dword [esi + edx*8 + 0xe4]
mov edx, dword [esp + 0x64]
add edx, ebp
add edx, edi
rol ecx, 1
xor ecx, edx
mov edx, dword [esp + 0x68]
lea edx, [edx + ebp*2]
add edx, edi
xor edx, ebx
mov ebx, ecx
shr ebx, 0x10
movzx edi, bl
mov edi, dword [esi + edi*8 + 0x8e0]
mov ebx, ecx
shr ebx, 0x18
xor edi, dword [esi + ebx*8 + 0x8e4]
mov ebx, ecx
shr ebx, 8
movzx ebx, bl
xor edi, dword [esi + ebx*8 + 0xe4]
ror edx, 1
movzx ebx, cl
xor edi, dword [esi + ebx*8 + 0xe0]
mov ebx, edx
shr ebx, 8
movzx ebx, bl
mov ebp, edx
shr ebp, 0x18
mov dword [esp + 0x10], ebp
mov ebp, dword [esi + ebx*8 + 0x8e0]
mov ebx, dword [esp + 0x10]
xor ebp, dword [esi + ebx*8 + 0xe0]
mov ebx, edx
shr ebx, 0x10
movzx ebx, bl
xor ebp, dword [esi + ebx*8 + 0x8e4]
movzx ebx, dl
xor ebp, dword [esi + ebx*8 + 0xe4]
mov ebx, dword [esp + 0x20]
rol ebx, 1
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x5c]
add ebp, ebx
mov ebx, dword [esp + 0x10]
add ebp, edi
xor ebx, ebp
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x60]
lea ebx, [ebx + ebp*2]
mov ebp, dword [esp + 0x20]
add ebx, edi
xor ebx, eax
mov eax, dword [esp + 0x20]
shr eax, 0x10
movzx eax, al
mov edi, dword [esi + eax*8 + 0x8e0]
mov eax, dword [esp + 0x20]
shr eax, 8
shr ebp, 0x18
xor edi, dword [esi + ebp*8 + 0x8e4]
movzx eax, al
xor edi, dword [esi + eax*8 + 0xe4]
movzx eax, byte [esp + 0x20]
xor edi, dword [esi + eax*8 + 0xe0]
ror ebx, 1
mov eax, ebx
shr eax, 8
movzx eax, al
mov ebp, ebx
shr ebp, 0x18
mov dword [esp + 0x10], ebp
mov ebp, dword [esi + eax*8 + 0x8e0]
mov eax, dword [esp + 0x10]
xor ebp, dword [esi + eax*8 + 0xe0]
mov eax, ebx
shr eax, 0x10
movzx eax, al
xor ebp, dword [esi + eax*8 + 0x8e4]
movzx eax, bl
xor ebp, dword [esi + eax*8 + 0xe4]
mov eax, dword [esp + 0x54]
add eax, ebp
add eax, edi
rol ecx, 1
xor ecx, eax
mov eax, dword [esp + 0x58]
lea eax, [eax + ebp*2]
add eax, edi
xor eax, edx
mov edx, ecx
shr edx, 0x10
movzx edx, dl
mov edi, dword [esi + edx*8 + 0x8e0]
mov edx, ecx
mov ebp, ecx
shr edx, 8
shr ebp, 0x18
xor edi, dword [esi + ebp*8 + 0x8e4]
movzx edx, dl
xor edi, dword [esi + edx*8 + 0xe4]
mov dword [esp + 0x18], ecx
ror eax, 1
movzx ecx, cl
xor edi, dword [esi + ecx*8 + 0xe0]
mov edx, eax
shr edx, 8
movzx ecx, dl
mov ebp, dword [esi + ecx*8 + 0x8e0]
mov edx, eax
shr edx, 0x18
xor ebp, dword [esi + edx*8 + 0xe0]
mov ecx, eax
shr ecx, 0x10
movzx edx, cl
xor ebp, dword [esi + edx*8 + 0x8e4]
mov edx, dword [esp + 0x4c]
movzx ecx, al
xor ebp, dword [esi + ecx*8 + 0xe4]
mov ecx, dword [esp + 0x20]
rol ecx, 1
add edx, ebp
add edx, edi
xor ecx, edx
mov edx, dword [esp + 0x50]
lea ebp, [edx + ebp*2]
add ebp, edi
xor ebp, ebx
ror ebp, 1
cmp dword [esp + 0xd4], 1
jne 0x4d04a7
mov edx, dword [esp + 0x2c]
xor edx, dword [esp + 0x18]
mov edi, dword [esp + 0xe4]
mov dword [edi], edx
mov edx, dword [esp + 0x30]
xor edx, eax
mov eax, dword [esp + 0x34]
xor eax, ecx
mov ecx, dword [esp + 0x38]
xor ecx, ebp
mov dword [edi + 4], edx
mov edx, dword [esp + 0xdc]
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
jmp 0x4d0515
mov edi, dword [esp + 0xd8]
mov edx, dword [edi]
xor edx, dword [esp + 0x2c]
xor dword [esp + 0x18], edx
mov edx, dword [esp + 0xdc]
mov ebx, dword [edx]
mov dword [edi], ebx
mov edi, dword [esp + 0xe4]
mov ebx, dword [esp + 0x18]
mov dword [edi], ebx
mov ebx, dword [esp + 0x30]
xor ebx, eax
mov eax, dword [esp + 0xd8]
xor ebx, dword [eax + 4]
mov dword [esp + 0x1c], ebx
mov ebx, dword [edx + 4]
mov dword [eax + 4], ebx
mov ebx, dword [esp + 0x1c]
mov dword [edi + 4], ebx
mov ebx, dword [eax + 8]
xor ebx, dword [esp + 0x34]
xor ecx, ebx
mov ebx, dword [edx + 8]
mov dword [eax + 8], ebx
mov dword [edi + 8], ecx
mov ecx, dword [eax + 0xc]
xor ecx, dword [esp + 0x38]
xor ebp, ecx
mov ecx, dword [edx + 0xc]
mov dword [eax + 0xc], ecx
mov dword [edi + 0xc], ebp
add edx, 0x10
add edi, 0x10
sub dword [esp + 0x28], 1
mov dword [esp + 0xdc], edx
mov dword [esp + 0xe4], edi
jne 0x4cfab0
mov eax, dword [esp + 0xe0]
pop ebp
pop ebx
pop edi
pop esi
add esp, 0xbc
ret