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

Disassembly:
sub esp, 0xb8
push ebx
mov ebx, dword [esp + 0xc0]
push esi
push edi
mov al, byte [ebx]
mov esi, dword [ebx + 0xc]
cmp al, 1
je 0x46d184
push 1
push ebx
call fcn.0046b4f0
add esp, 8
lea ecx, [esi*8 + 0x20]
lea esi, [ebx + 0x40]
mov eax, ecx
lea edi, [esp + 0x24]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0xd8]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
jle 0x46de15
mov ecx, dword [esp + 0xd4]
add eax, 0x7f
shr eax, 7
push ebp
mov dword [esp + 0x24], eax
mov eax, dword [ecx + 4]
mov edx, dword [esp + 0x3c]
mov esi, dword [ecx]
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x44]
xor eax, edx
xor esi, edi
mov edi, dword [ecx + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x40]
mov edx, esi
mov dword [esp + 0x18], esi
xor edi, eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [esp + 0x1a]
and edx, 0xff
xor eax, ebp
and ecx, 0xff
mov ebp, dword [ebx + edx*8 + 0xe0]
mov edx, dword [esp + 0x1b]
mov ecx, dword [ebx + ecx*8 + 0x8e0]
and edx, 0xff
xor ecx, ebp
mov ebp, dword [ebx + edx*8 + 0x8e4]
mov edx, dword [esp + 0x19]
and edx, 0xff
xor ecx, ebp
mov ebp, dword [ebx + edx*8 + 0xe4]
mov edx, dword [esp + 0x1d]
xor ecx, ebp
mov ebp, dword [esp + 0x1f]
and edx, 0xff
and ebp, 0xff
mov edx, dword [ebx + edx*8 + 0x8e0]
xor edx, dword [ebx + ebp*8 + 0xe0]
mov ebp, dword [esp + 0x1e]
and ebp, 0xff
xor edx, dword [ebx + ebp*8 + 0x8e4]
mov ebp, dword [esp + 0x1c]
and ebp, 0xff
xor edx, dword [ebx + ebp*8 + 0xe4]
mov ebp, dword [esp + 0xc0]
rol edi, 1
add ebp, edx
add ebp, ecx
xor edi, ebp
mov ebp, dword [esp + 0xc4]
mov dword [esp + 0x10], edi
lea ebp, [ebp + edx*2]
mov edx, edi
add ebp, ecx
and edx, 0xff
xor ebp, eax
ror ebp, 1
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x12]
and eax, 0xff
mov ecx, dword [ebx + eax*8 + 0x8e0]
mov eax, dword [ebx + edx*8 + 0xe0]
xor ecx, eax
mov eax, dword [esp + 0x13]
and eax, 0xff
mov edx, dword [ebx + eax*8 + 0x8e4]
xor ecx, edx
mov edx, dword [esp + 0x11]
and edx, 0xff
mov eax, dword [ebx + edx*8 + 0xe4]
mov edx, dword [esp + 0x15]
xor ecx, eax
mov eax, dword [esp + 0x17]
and edx, 0xff
and eax, 0xff
mov edx, dword [ebx + edx*8 + 0x8e0]
xor edx, dword [ebx + eax*8 + 0xe0]
mov eax, dword [esp + 0x16]
and eax, 0xff
xor edx, dword [ebx + eax*8 + 0x8e4]
mov eax, ebp
and eax, 0xff
xor edx, dword [ebx + eax*8 + 0xe4]
rol esi, 1
mov eax, dword [esp + 0xb8]
add eax, edx
add eax, ecx
xor esi, eax
mov eax, esi
mov esi, dword [esp + 0xbc]
mov dword [esp + 0x18], eax
and eax, 0xff
lea esi, [esi + edx*2]
mov edx, dword [esp + 0x1c]
add esi, ecx
xor esi, edx
mov edx, dword [ebx + eax*8 + 0xe0]
ror esi, 1
mov dword [esp + 0x1c], esi
mov ecx, dword [esp + 0x1a]
and ecx, 0xff
mov ecx, dword [ebx + ecx*8 + 0x8e0]
xor ecx, edx
mov edx, dword [esp + 0x1b]
and edx, 0xff
mov eax, dword [ebx + edx*8 + 0x8e4]
xor ecx, eax
mov eax, dword [esp + 0x19]
and eax, 0xff
mov edx, dword [ebx + eax*8 + 0xe4]
mov eax, dword [esp + 0x1f]
xor ecx, edx
mov edx, dword [esp + 0x1d]
and edx, 0xff
and eax, 0xff
mov edx, dword [ebx + edx*8 + 0x8e0]
xor edx, dword [ebx + eax*8 + 0xe0]
mov eax, dword [esp + 0x1e]
and eax, 0xff
xor edx, dword [ebx + eax*8 + 0x8e4]
mov eax, esi
and eax, 0xff
xor edx, dword [ebx + eax*8 + 0xe4]
mov eax, dword [esp + 0xb0]
rol edi, 1
add eax, edx
add eax, ecx
xor edi, eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x10], edi
and edi, 0xff
lea eax, [eax + edx*2]
add eax, ecx
xor eax, ebp
mov ebp, dword [ebx + edi*8 + 0xe0]
ror eax, 1
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x12]
mov edx, dword [esp + 0x13]
and ecx, 0xff
mov edi, dword [esp + 0x17]
and edx, 0xff
and edi, 0xff
mov ecx, dword [ebx + ecx*8 + 0x8e0]
xor ecx, ebp
mov ebp, dword [ebx + edx*8 + 0x8e4]
mov edx, dword [esp + 0x11]
xor ecx, ebp
and edx, 0xff
mov ebp, dword [ebx + edx*8 + 0xe4]
mov edx, dword [esp + 0x15]
xor ecx, ebp
mov ebp, dword [ebx + edi*8 + 0xe0]
mov edi, dword [esp + 0x16]
and edx, 0xff
and edi, 0xff
mov edx, dword [ebx + edx*8 + 0x8e0]
xor edx, ebp
mov ebp, dword [ebx + edi*8 + 0x8e4]
mov edi, eax
xor edx, ebp
and edi, 0xff
mov ebp, dword [ebx + edi*8 + 0xe4]
mov edi, dword [esp + 0x18]
xor edx, ebp
mov ebp, dword [esp + 0xa8]
add ebp, edx
rol edi, 1
add ebp, ecx
xor edi, ebp
mov ebp, edi
mov edi, dword [esp + 0xac]
mov dword [esp + 0x18], ebp
and ebp, 0xff
lea edi, [edi + edx*2]
add edi, ecx
mov edx, dword [ebx + ebp*8 + 0xe0]
xor edi, esi
ror edi, 1
mov dword [esp + 0x1c], edi
mov ecx, dword [esp + 0x1a]
mov esi, dword [esp + 0x1f]
and ecx, 0xff
and esi, 0xff
mov ecx, dword [ebx + ecx*8 + 0x8e0]
xor ecx, edx
mov edx, dword [esp + 0x1b]
and edx, 0xff
mov ebp, dword [ebx + edx*8 + 0x8e4]
mov edx, dword [esp + 0x19]
and edx, 0xff
xor ecx, ebp
mov ebp, dword [ebx + edx*8 + 0xe4]
mov edx, dword [esp + 0x1d]
xor ecx, ebp
mov ebp, dword [ebx + esi*8 + 0xe0]
mov esi, dword [esp + 0x1e]
and edx, 0xff
and esi, 0xff
mov edx, dword [ebx + edx*8 + 0x8e0]
xor edx, ebp
mov ebp, dword [ebx + esi*8 + 0x8e4]
mov esi, edi
xor edx, ebp
and esi, 0xff
mov ebp, dword [ebx + esi*8 + 0xe4]
mov esi, dword [esp + 0x10]
xor edx, ebp
mov ebp, dword [esp + 0xa0]
add ebp, edx
rol esi, 1
add ebp, ecx
xor esi, ebp
mov ebp, esi
mov esi, dword [esp + 0xa4]
mov dword [esp + 0x10], ebp
and ebp, 0xff
lea esi, [esi + edx*2]
add esi, ecx
xor esi, eax
ror esi, 1
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x12]
mov edx, dword [esp + 0x13]
and eax, 0xff
and edx, 0xff
mov ecx, dword [ebx + eax*8 + 0x8e0]
mov eax, dword [ebx + ebp*8 + 0xe0]
xor ecx, eax
mov eax, dword [ebx + edx*8 + 0x8e4]
xor ecx, eax
mov eax, dword [esp + 0x11]
and eax, 0xff
mov edx, dword [ebx + eax*8 + 0xe4]
mov eax, dword [esp + 0x17]
xor ecx, edx
mov edx, dword [esp + 0x15]
and eax, 0xff
and edx, 0xff
mov ebp, dword [ebx + eax*8 + 0xe0]
mov eax, dword [esp + 0x16]
mov edx, dword [ebx + edx*8 + 0x8e0]
and eax, 0xff
xor edx, ebp
xor edx, dword [ebx + eax*8 + 0x8e4]
mov eax, esi
and eax, 0xff
mov ebp, dword [ebx + eax*8 + 0xe4]
mov eax, dword [esp + 0x18]
xor edx, ebp
mov ebp, dword [esp + 0x98]
add ebp, edx
add ebp, ecx
rol eax, 1
xor eax, ebp
mov ebp, eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x18], ebp
and ebp, 0xff
lea eax, [eax + edx*2]
add eax, ecx
mov edx, dword [ebx + ebp*8 + 0xe0]
xor eax, edi
ror eax, 1
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x1a]
mov edi, dword [esp + 0x1f]
and ecx, 0xff
and edi, 0xff
mov ecx, dword [ebx + ecx*8 + 0x8e0]
xor ecx, edx
mov edx, dword [esp + 0x1b]
and edx, 0xff
mov ebp, dword [ebx + edx*8 + 0x8e4]
mov edx, dword [esp + 0x19]
and edx, 0xff
xor ecx, ebp
mov ebp, dword [ebx + edx*8 + 0xe4]
mov edx, dword [esp + 0x1d]
xor ecx, ebp
mov ebp, dword [ebx + edi*8 + 0xe0]
mov edi, dword [esp + 0x1e]
and edx, 0xff
and edi, 0xff
mov edx, dword [ebx + edx*8 + 0x8e0]
xor edx, ebp
mov ebp, dword [ebx + edi*8 + 0x8e4]
mov edi, eax
xor edx, ebp
and edi, 0xff
mov ebp, dword [ebx + edi*8 + 0xe4]
mov edi, dword [esp + 0x10]
xor edx, ebp
mov ebp, dword [esp + 0x90]
add ebp, edx
rol edi, 1
add ebp, ecx
xor edi, ebp
mov ebp, edi
mov edi, dword [esp + 0x94]
mov dword [esp + 0x10], ebp
and ebp, 0xff
lea edi, [edi + edx*2]
add edi, ecx
mov edx, dword [ebx + ebp*8 + 0xe0]
xor edi, esi
ror edi, 1
mov dword [esp + 0x14], edi
mov ecx, dword [esp + 0x12]
mov esi, dword [esp + 0x17]
and ecx, 0xff
mov ecx, dword [ebx + ecx*8 + 0x8e0]
xor ecx, edx
mov edx, dword [esp + 0x13]
and edx, 0xff
mov ebp, dword [ebx + edx*8 + 0x8e4]
mov edx, dword [esp + 0x11]
and edx, 0xff
xor ecx, ebp
mov ebp, dword [ebx + edx*8 + 0xe4]
mov edx, dword [esp + 0x15]
xor ecx, ebp
and edx, 0xff
and esi, 0xff
mov edx, dword [ebx + edx*8 + 0x8e0]
mov ebp, dword [ebx + esi*8 + 0xe0]
mov esi, dword [esp + 0x16]
xor edx, ebp
and esi, 0xff
mov ebp, dword [ebx + esi*8 + 0x8e4]
mov esi, edi
and esi, 0xff
xor edx, ebp
mov ebp, dword [ebx + esi*8 + 0xe4]
mov esi, dword [esp + 0x18]
xor edx, ebp
mov ebp, dword [esp + 0x88]
add ebp, edx
rol esi, 1
add ebp, ecx
xor esi, ebp
mov ebp, esi
mov esi, dword [esp + 0x8c]
mov dword [esp + 0x18], ebp
and ebp, 0xff
lea esi, [esi + edx*2]
add esi, ecx
xor esi, eax
ror esi, 1
mov dword [esp + 0x1c], esi
mov eax, dword [esp + 0x1a]
mov edx, dword [esp + 0x1b]
and eax, 0xff
and edx, 0xff
mov ecx, dword [ebx + eax*8 + 0x8e0]
mov eax, dword [ebx + ebp*8 + 0xe0]
xor ecx, eax
mov eax, dword [ebx + edx*8 + 0x8e4]
xor ecx, eax
mov eax, dword [esp + 0x19]
and eax, 0xff
mov edx, dword [ebx + eax*8 + 0xe4]
mov eax, dword [esp + 0x1f]
xor ecx, edx
mov edx, dword [esp + 0x1d]
and eax, 0xff
and edx, 0xff
mov ebp, dword [ebx + eax*8 + 0xe0]
mov eax, dword [esp + 0x1e]
mov edx, dword [ebx + edx*8 + 0x8e0]
and eax, 0xff
xor edx, ebp
mov ebp, dword [ebx + eax*8 + 0x8e4]
mov eax, esi
and eax, 0xff
xor edx, ebp
mov ebp, dword [ebx + eax*8 + 0xe4]
mov eax, dword [esp + 0x10]
xor edx, ebp
mov ebp, dword [esp + 0x80]
add ebp, edx
rol eax, 1
add ebp, ecx
xor eax, ebp
mov ebp, eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x10], ebp
and ebp, 0xff
lea eax, [eax + edx*2]
add eax, ecx
mov edx, dword [ebx + ebp*8 + 0xe0]
xor eax, edi
ror eax, 1
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x12]
and ecx, 0xff
mov ecx, dword [ebx + ecx*8 + 0x8e0]
xor ecx, edx
mov edx, dword [esp + 0x13]
and edx, 0xff
mov ebp, dword [ebx + edx*8 + 0x8e4]
mov edx, dword [esp + 0x11]
and edx, 0xff
xor ecx, ebp
mov ebp, dword [ebx + edx*8 + 0xe4]
mov edx, dword [esp + 0x15]
xor ecx, ebp
mov edi, dword [esp + 0x17]
and edx, 0xff
and edi, 0xff
mov edx, dword [ebx + edx*8 + 0x8e0]
mov ebp, dword [ebx + edi*8 + 0xe0]
mov edi, dword [esp + 0x16]
and edi, 0xff
xor edx, ebp
mov ebp, dword [ebx + edi*8 + 0x8e4]
mov edi, eax
and edi, 0xff
xor edx, ebp
mov ebp, dword [ebx + edi*8 + 0xe4]
mov edi, dword [esp + 0x18]
xor edx, ebp
mov ebp, dword [esp + 0x78]
add ebp, edx
rol edi, 1
add ebp, ecx
xor edi, ebp
mov ebp, edi
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x18], ebp
and ebp, 0xff
lea edi, [edi + edx*2]
add edi, ecx
mov edx, dword [ebx + ebp*8 + 0xe0]
xor edi, esi
ror edi, 1
mov dword [esp + 0x1c], edi
mov ecx, dword [esp + 0x1a]
mov esi, dword [esp + 0x1f]
and ecx, 0xff
and esi, 0xff
mov ecx, dword [ebx + ecx*8 + 0x8e0]
xor ecx, edx
mov edx, dword [esp + 0x1b]
and edx, 0xff
mov ebp, dword [ebx + edx*8 + 0x8e4]
mov edx, dword [esp + 0x19]
and edx, 0xff
xor ecx, ebp
mov ebp, dword [ebx + edx*8 + 0xe4]
mov edx, dword [esp + 0x1d]
xor ecx, ebp
mov ebp, dword [ebx + esi*8 + 0xe0]
mov esi, dword [esp + 0x1e]
and edx, 0xff
and esi, 0xff
mov edx, dword [ebx + edx*8 + 0x8e0]
xor edx, ebp
mov ebp, dword [ebx + esi*8 + 0x8e4]
mov esi, edi
xor edx, ebp
and esi, 0xff
mov ebp, dword [ebx + esi*8 + 0xe4]
mov esi, dword [esp + 0x10]
xor edx, ebp
mov ebp, dword [esp + 0x70]
add ebp, edx
rol esi, 1
add ebp, ecx
xor esi, ebp
mov ebp, esi
mov esi, dword [esp + 0x74]
mov dword [esp + 0x10], ebp
and ebp, 0xff
lea esi, [esi + edx*2]
add esi, ecx
xor esi, eax
ror esi, 1
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x12]
mov edx, dword [esp + 0x13]
and eax, 0xff
and edx, 0xff
mov ecx, dword [ebx + eax*8 + 0x8e0]
mov eax, dword [ebx + ebp*8 + 0xe0]
xor ecx, eax
mov eax, dword [ebx + edx*8 + 0x8e4]
xor ecx, eax
mov eax, dword [esp + 0x11]
and eax, 0xff
mov edx, dword [ebx + eax*8 + 0xe4]
mov eax, dword [esp + 0x17]
xor ecx, edx
mov edx, dword [esp + 0x15]
and eax, 0xff
and edx, 0xff
mov ebp, dword [ebx + eax*8 + 0xe0]
mov eax, dword [esp + 0x16]
mov edx, dword [ebx + edx*8 + 0x8e0]
and eax, 0xff
xor edx, ebp
mov ebp, dword [ebx + eax*8 + 0x8e4]
mov eax, esi
and eax, 0xff
xor edx, ebp
mov ebp, dword [ebx + eax*8 + 0xe4]
mov eax, dword [esp + 0x18]
xor edx, ebp
mov ebp, dword [esp + 0x68]
add ebp, edx
rol eax, 1
add ebp, ecx
xor eax, ebp
mov ebp, eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x18], ebp
and ebp, 0xff
lea eax, [eax + edx*2]
add eax, ecx
mov edx, dword [ebx + ebp*8 + 0xe0]
xor eax, edi
ror eax, 1
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x1a]
mov edi, dword [esp + 0x1f]
and ecx, 0xff
and edi, 0xff
mov ecx, dword [ebx + ecx*8 + 0x8e0]
xor ecx, edx
mov edx, dword [esp + 0x1b]
and edx, 0xff
mov ebp, dword [ebx + edx*8 + 0x8e4]
mov edx, dword [esp + 0x19]
and edx, 0xff
xor ecx, ebp
mov ebp, dword [ebx + edx*8 + 0xe4]
mov edx, dword [esp + 0x1d]
xor ecx, ebp
mov ebp, dword [ebx + edi*8 + 0xe0]
mov edi, dword [esp + 0x1e]
and edx, 0xff
and edi, 0xff
mov edx, dword [ebx + edx*8 + 0x8e0]
xor edx, ebp
mov ebp, dword [ebx + edi*8 + 0x8e4]
mov edi, eax
xor edx, ebp
and edi, 0xff
mov ebp, dword [ebx + edi*8 + 0xe4]
mov edi, dword [esp + 0x10]
xor edx, ebp
mov ebp, dword [esp + 0x60]
add ebp, edx
rol edi, 1
add ebp, ecx
xor edi, ebp
mov ebp, edi
mov edi, dword [esp + 0x64]
mov dword [esp + 0x10], ebp
lea edi, [edi + edx*2]
add edi, ecx
xor edi, esi
ror edi, 1
mov dword [esp + 0x14], edi
mov ecx, dword [esp + 0x12]
and ecx, 0xff
and ebp, 0xff
mov ecx, dword [ebx + ecx*8 + 0x8e0]
mov edx, dword [ebx + ebp*8 + 0xe0]
xor ecx, edx
mov edx, dword [esp + 0x13]
mov esi, dword [esp + 0x17]
and edx, 0xff
and esi, 0xff
mov ebp, dword [ebx + edx*8 + 0x8e4]
mov edx, dword [esp + 0x11]
and edx, 0xff
xor ecx, ebp
mov ebp, dword [ebx + edx*8 + 0xe4]
mov edx, dword [esp + 0x15]
xor ecx, ebp
mov ebp, dword [ebx + esi*8 + 0xe0]
mov esi, dword [esp + 0x16]
and edx, 0xff
and esi, 0xff
mov edx, dword [ebx + edx*8 + 0x8e0]
xor edx, ebp
mov ebp, dword [ebx + esi*8 + 0x8e4]
mov esi, edi
xor edx, ebp
and esi, 0xff
mov ebp, dword [ebx + esi*8 + 0xe4]
mov esi, dword [esp + 0x18]
xor edx, ebp
mov ebp, dword [esp + 0x58]
add ebp, edx
rol esi, 1
add ebp, ecx
xor esi, ebp
mov ebp, esi
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x18], ebp
and ebp, 0xff
lea esi, [esi + edx*2]
add esi, ecx
xor esi, eax
ror esi, 1
mov dword [esp + 0x1c], esi
mov eax, dword [esp + 0x1a]
mov edx, dword [esp + 0x1b]
and eax, 0xff
and edx, 0xff
mov ecx, dword [ebx + eax*8 + 0x8e0]
mov eax, dword [ebx + ebp*8 + 0xe0]
xor ecx, eax
mov eax, dword [ebx + edx*8 + 0x8e4]
xor ecx, eax
mov eax, dword [esp + 0x19]
and eax, 0xff
mov edx, dword [ebx + eax*8 + 0xe4]
mov eax, dword [esp + 0x1f]
xor ecx, edx
mov edx, dword [esp + 0x1d]
and eax, 0xff
and edx, 0xff
mov ebp, dword [ebx + eax*8 + 0xe0]
mov eax, dword [esp + 0x1e]
mov edx, dword [ebx + edx*8 + 0x8e0]
and eax, 0xff
xor edx, ebp
mov ebp, dword [ebx + eax*8 + 0x8e4]
mov eax, esi
and eax, 0xff
xor edx, ebp
mov ebp, dword [ebx + eax*8 + 0xe4]
mov eax, dword [esp + 0x10]
xor edx, ebp
mov ebp, dword [esp + 0x50]
add ebp, edx
rol eax, 1
add ebp, ecx
xor eax, ebp
mov ebp, eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x10], ebp
lea eax, [eax + edx*2]
add eax, ecx
xor eax, edi
ror eax, 1
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x12]
and ebp, 0xff
and ecx, 0xff
mov edi, dword [esp + 0x17]
mov edx, dword [ebx + ebp*8 + 0xe0]
and edi, 0xff
mov ecx, dword [ebx + ecx*8 + 0x8e0]
xor ecx, edx
mov edx, dword [esp + 0x13]
and edx, 0xff
mov ebp, dword [ebx + edx*8 + 0x8e4]
mov edx, dword [esp + 0x11]
and edx, 0xff
xor ecx, ebp
mov ebp, dword [ebx + edx*8 + 0xe4]
mov edx, dword [esp + 0x15]
xor ecx, ebp
mov ebp, dword [ebx + edi*8 + 0xe0]
mov edi, dword [esp + 0x16]
and edx, 0xff
and edi, 0xff
mov edx, dword [ebx + edx*8 + 0x8e0]
xor edx, ebp
mov ebp, dword [ebx + edi*8 + 0x8e4]
mov edi, eax
xor edx, ebp
and edi, 0xff
mov ebp, dword [ebx + edi*8 + 0xe4]
mov edi, dword [esp + 0x18]
xor edx, ebp
mov ebp, dword [esp + 0x48]
add ebp, edx
rol edi, 1
add ebp, ecx
xor edi, ebp
mov ebp, dword [esp + 0x4c]
lea edx, [ebp + edx*2]
add edx, ecx
mov ecx, dword [esp + 0xd0]
xor edx, esi
ror edx, 1
cmp ecx, 1
mov ecx, dword [esp + 0x28]
jne 0x46dd76
mov ebp, dword [esp + 0x10]
xor ecx, ebp
mov ebp, dword [esp + 0xe0]
mov dword [ebp], ecx
mov ecx, dword [esp + 0x2c]
xor ecx, eax
mov eax, dword [esp + 0x30]
mov dword [ebp + 4], ecx
mov ecx, dword [esp + 0x34]
xor eax, edi
xor ecx, edx
mov dword [ebp + 0xc], ecx
mov ecx, dword [esp + 0xd8]
mov dword [ebp + 8], eax
jmp 0x46ddea
mov esi, dword [esp + 0xd4]
mov ebp, dword [esi]
xor ecx, ebp
mov ebp, dword [esp + 0x10]
xor ebp, ecx
mov ecx, dword [esp + 0xd8]
mov dword [esp + 0x10], ebp
mov ebp, dword [ecx]
mov dword [esi], ebp
mov ebp, dword [esp + 0xe0]
mov esi, dword [esp + 0x10]
mov dword [ebp], esi
mov esi, dword [esp + 0xd4]
mov ebp, dword [esp + 0x2c]
xor ebp, dword [esi + 4]
xor eax, ebp
mov ebp, dword [ecx + 4]
mov dword [esi + 4], ebp
mov ebp, dword [esp + 0xe0]
mov dword [ebp + 4], eax
mov eax, dword [esi + 8]
xor eax, dword [esp + 0x30]
xor edi, eax
mov eax, dword [ecx + 8]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x34]
mov dword [ebp + 8], edi
mov edi, dword [esi + 0xc]
xor eax, edi
xor edx, eax
mov eax, dword [ecx + 0xc]
mov dword [esi + 0xc], eax
mov dword [ebp + 0xc], edx
mov eax, dword [esp + 0x24]
add ecx, 0x10
add ebp, 0x10
dec eax
mov dword [esp + 0xd8], ecx
mov dword [esp + 0xe0], ebp
mov dword [esp + 0x24], eax
jne 0x46d1c1
mov eax, dword [esp + 0xdc]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xb8
ret