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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
mov eax, dword [0x828208]
xor eax, esp
mov dword [esp + 0xa0], eax
mov eax, dword [0x86c13c]
push ebx
push esi
mov dword [esp + 0x2c], eax
xor esi, esi
mov eax, dword [0x86bdf4]
push edi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], 1
call fcn.0042a090
call fcn.004279d0
push eax
call fcn.00428280
add esp, 4
mov dword [esp + 0x24], eax
push eax
call fcn.00429270
mov ebx, eax
add esp, 4
mov eax, dword [0x86c1b8]
mov dword [esp + 0xc], ebx
push eax
mov eax, dword [eax + 0x1c]
call eax
add esp, 4
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0xc]
push ebx
call eax
mov dword [esp + 0x24], eax
add esp, 4
mov eax, dword [0x86c1b8]
push eax
mov eax, dword [eax + 0x10]
call eax
add esp, 4
test eax, eax
jne 0x402890
lea eax, [esp + 0x50]
push eax
mov eax, dword [0x86c1b8]
push eax
mov eax, dword [eax + 0x18]
call eax
add esp, 8
test eax, eax
jne 0x402878
mov ebx, 0x8702c0
xor edi, edi
nop word [eax + eax]
mov edx, ebx
lea eax, [esp + 0x50]
mov esi, 0xc
nop dword [eax + eax]
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x402676
add edx, 4
add eax, 4
sub esi, 4
jae 0x402660
jmp 0x402733
add edi, 0x10
add ebx, 0x10
cmp edi, 0x30
jb 0x402650
mov eax, dword [0x8483c4]
mov esi, dword [eax + 0x28]
test esi, esi
je 0x402874
mov bl, byte [esi + 8]
lea ecx, [esp + 0x50]
mov edx, dword [esi + 0x18]
and bl, 1
mov edi, 0xc
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4026dc
add ecx, 4
add edx, 4
sub edi, 4
jae 0x4026a3
mov eax, dword [esi + 8]
test eax, 0x8400
setne cl
test al, 0x10
setne al
test al, cl
je 0x4026cc
mov byte [esi + 0x7d], 1
cmp byte [esi + 0x7c], 0
je 0x4026dc
cmp byte [esi + 0x7d], 0
je 0x4026dc
test bl, bl
jne 0x4026e8
mov esi, dword [esi + 0x10]
test esi, esi
jne 0x402691
jmp 0x402874
mov dword [esp + 0x40], 0x17088572
lea ecx, [esp + 0x40]
mov dword [esp + 0x44], 0x44ef377f
lea edx, [esp + 0x50]
mov dword [esp + 0x48], 0x9fb04e8f
mov esi, 0xc
mov dword [esp + 0x4c], 0x70a046ff
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x402733
add ecx, 4
add edx, 4
sub esi, 4
jae 0x402715
call fcn.004207a0
test al, al
je 0x402874
movzx eax, byte [esp + 0x5f]
push eax
movzx eax, byte [esp + 0x62]
push eax
movzx eax, byte [esp + 0x65]
push eax
movzx eax, byte [esp + 0x68]
push eax
movzx eax, byte [esp + 0x6b]
push eax
movzx eax, byte [esp + 0x6e]
push eax
movzx eax, byte [esp + 0x71]
push eax
movzx eax, byte [esp + 0x74]
push eax
movzx eax, word [esp + 0x76]
push eax
movzx eax, word [esp + 0x78]
push eax
push dword [esp + 0x78]
push str.Payload_for_RBU:
push str._s_08X__04X__04X__02X_02X__02X_02X_02X_02X_02X_02X_n
push dword [esp + 0x68]
call fcn.0040adc0
push dword [esp + 0x98]
mov ebx, dword [esp + 0x48]
lea eax, [esp + 0x8c]
push eax
push ebx
mov eax, dword [ebx + 8]
call eax
mov edi, dword [esp + 0x54]
add esp, 0x44
cmp edi, dword [esp + 0x60]
mov ecx, eax
cmovne edi, dword [esp + 0x60]
mov dword [esp + 0x10], edi
test ecx, ecx
jne 0x402878
lea eax, [esp + 0x98]
push eax
push dword [esp + 0x78]
lea eax, [esp + 0x70]
push dword [esp + 0x78]
push eax
lea eax, [esp + 0x74]
push eax
mov eax, dword [ebx + 0x10]
push ebx
call eax
add esp, 0x18
test eax, eax
jne 0x402878
mov ebx, dword [esp + 0x38]
mov esi, dword [esp + 0x20]
push 0x4000
push 0x86c2c0
push 0x4da4c0
push ebx
push 0x4da4c0
push esi
call fcn.00429540
add esp, 0x18
test eax, eax
jne 0x402874
push 0x4000
push 0x86c2c0
push 0x4da4d8
push ebx
push 0x4da4d8
push esi
call fcn.00429540
add esp, 0x18
test eax, eax
jne 0x402874
push 0x4000
push 0x86c2c0
push 0x4da4dc
push ebx
push 0x4da4dc
push esi
call fcn.00429540
add esp, 0x18
test eax, eax
jne 0x402874
push 0x4000
push 0x86c2c0
push 0x4da3ac
push ebx
push 0x4da3ac
push esi
call fcn.00429540
add esp, 0x18
mov ebx, dword [esp + 0xc]
mov eax, dword [0x86c1b8]
push eax
mov eax, dword [eax + 0x14]
call eax
add esp, 4
test eax, eax
je 0x402624
xor esi, esi
xor edi, edi
cmp eax, 0x3f5
cmovne edi, eax
test edi, edi
jne 0x402905
push dword [esp + 0x10]
mov eax, dword [ebx + 8]
push 0x82a01c
push ebx
call eax
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x402905
push 0x870420
push eax
push eax
mov eax, dword [ebx + 0x10]
push 0x82a02c
push str.NNNN
push ebx
call eax
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x402905
push dword [esp + 0x24]
call fcn.0042aaf0
add esp, 4
mov dword [esp + 0x1c], eax
push eax
mov eax, dword [eax + 8]
call eax
add esp, 4
mov esi, eax
mov dword [esp + 0x18], esi
mov eax, dword [esi + 4]
push 0x4da4c2
push esi
call eax
add esp, 8
mov edi, eax
mov ecx, dword [esp + 0x14]
movzx eax, cx
mov dword [esp + 0x3c], eax
test edi, edi
jne 0x40292a
push 2
lea eax, [esp + 0x40]
push eax
mov eax, dword [esi + 8]
push esi
call eax
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov edi, eax
xor esi, esi
test edi, edi
jne 0x402a1e
cmp esi, ecx
jge 0x40296f
mov eax, dword [esp + 0x30]
mov edx, dword [eax + esi*4]
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402944
sub ecx, edi
lea eax, [ecx + 1]
push eax
mov eax, dword [esp + 0x1c]
push edx
push eax
mov eax, dword [eax + 8]
call eax
mov ecx, dword [esp + 0x20]
mov edi, eax
add esp, 0xc
inc esi
test edi, edi
je 0x402934
jmp 0x402a1e
test edi, edi
jne 0x402a1e
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [eax + 0xc]
call eax
mov edi, eax
add esp, 4
test edi, edi
jne 0x402a1e
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [eax + 4]
call eax
add esp, 4
mov dword [esp + 0x2c], eax
push eax
call fcn.0042ae00
add esp, 4
mov dword [esp + 0x28], eax
mov ecx, dword [eax + 8]
push eax
call ecx
add esp, 4
push 0x4000
push 0x86c2c0
push 0x4da4c2
push eax
push 0x4da4c0
push dword [esp + 0x34]
call fcn.00429540
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x402a1e
push dword [esp + 0x24]
call fcn.0042aaf0
add esp, 4
mov esi, eax
mov ecx, dword [esi + 8]
push 0x4da4c2
push esi
call ecx
mov ecx, dword [ebx + 4]
add esp, 4
push eax
push ebx
call ecx
add esp, 0xc
mov edi, eax
mov eax, dword [esi + 4]
push esi
call eax
add esp, 4
mov dword [0x86c1bc], eax
mov eax, dword [esi]
push esi
call eax
add esp, 4
test edi, edi
je 0x402a3a
mov eax, dword [0x86c1bc]
test eax, eax
je 0x402a3a
push eax
call fcn.0042a1e0
add esp, 4
mov dword [0x86c1bc], 0
mov eax, dword [esp + 0x28]
test eax, eax
je 0x402a4a
push eax
mov eax, dword [eax]
call eax
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x402a5a
push eax
mov eax, dword [eax]
call eax
add esp, 4
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x402a6b
push eax
call fcn.0042a1e0
add esp, 4
mov eax, dword [ebx]
push ebx
call eax
mov ecx, dword [esp + 0xb0]
add esp, 4
neg edi
sbb edi, edi
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0048980e
mov esp, ebp
pop ebp
ret