Function at 0x59024070
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x591419fd
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x80
cmp eax, 0x3d0
jne 0x5902481a
push ebp
xor ebp, ebp
push 0x1001
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebp
call fcn.591315b0
add esp, 4
cmp eax, ebp
mov dword [esp + 0x18], eax
je 0x590247e8
push ebx
push esi
push edi
lea ecx, [esp + 0x3c]
call fcn.590a4b00
lea ecx, [esp + 0x5c]
mov dword [esp + 0x98], ebp
call fcn.590ab1c0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x98], 1
call fcn.590a4b00
mov eax, dword [esp + 0xac]
mov byte [esp + 0x98], 2
mov eax, dword [eax + 4]
cmp eax, ebp
jle 0x59024204
mov ecx, dword [esp + 0xa4]
lea esi, [ebp*4]
mov edx, dword [ecx]
cmp dword [edx + esi], 0x3d1
jne 0x590241f3
push 0x5919cc20
lea ecx, [esp + 0x1c]
call fcn.5909e880
mov eax, dword [esp + 0xa8]
mov byte [esp + 0x98], 3
lea edx, [esp + 0x2c]
mov dword [esp + 0x2c], 0
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0xb0]
mov eax, dword [ecx + esi]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [edx]
mov edx, dword [ecx + esi]
push edx
push eax
call fcn.59023ea0
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x590241b2
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x44]
call fcn.590a5110
mov edx, dword [esp + 0xb4]
mov eax, esi
lea ecx, [esp + 0x4c]
add eax, dword [edx]
push eax
mov eax, dword [esp + 0x54]
push eax
call fcn.590a5110
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x60]
push ecx
push edx
lea ecx, [esp + 0x64]
call fcn.590ab400
mov eax, dword [0x5919cca0]
test eax, eax
je 0x590241e2
mov eax, dword [esp + 0xb4]
mov ecx, dword [eax]
mov edx, dword [esi + ecx]
push edx
push ebx
push str.GetSpecialAttachChipInfo__11__bGet_:__d___name:_s_
push str.MailLog
push 0xffffffffffffffff
push 0x5919cc34
call fcn.5907cd70
add esp, 0x18
lea ecx, [esp + 0x18]
mov byte [esp + 0x98], 2
call fcn.5909f180
mov eax, dword [esp + 0xac]
inc ebp
cmp ebp, dword [eax + 4]
jl 0x59024105
mov edi, dword [esp + 0xa8]
mov eax, dword [0x5919cca0]
test eax, eax
mov ebx, dword [edi + 4]
mov dword [esp + 0x30], ebx
je 0x59024235
push ebx
push str.GetSpecialAttachChipInfo__iCount:_08x_
push str.Combine
push 0xffffffffffffffff
push 0x5919cc34
call fcn.5907cd70
add esp, 0x14
test ebx, ebx
jle 0x590247a0
xor eax, eax
test ebx, ebx
mov dword [esp + 0x2c], eax
jle 0x590247a0
mov ecx, dword [esp + 0xa4]
lea esi, [eax*4]
mov edx, dword [ecx]
cmp dword [edx + esi], 0x3d2
jne 0x59024747
push 0x5919dc50
lea ecx, [esp + 0x1c]
call fcn.5909e9e0
push 0x5919dc50
lea ecx, [esp + 0x18]
mov byte [esp + 0x9c], 4
call fcn.5909e9e0
mov eax, dword [esp + 0xac]
mov byte [esp + 0x98], 5
mov ecx, dword [eax]
mov ebp, dword [esi + ecx]
cmp ebp, 0x1000
jbe 0x590242ad
mov ebp, 0x1000
mov edx, dword [edi]
push 0x180
push 0x8000
mov eax, dword [edx + esi]
push eax
call fcn.590821dd
mov ebx, eax
add esp, 0xc
cmp ebx, 0xffffffff
jne 0x5902432f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x5919cca0]
test ecx, ecx
je 0x590242fb
mov ecx, dword [edi]
mov edx, dword [ecx + esi]
push edx
push eax
push str.GetSpecialAttachChipInfo_test__dwLastError_:__d____S_
push str.MailLog
push ebx
push 0x5919cc34
call fcn.5907cd70
add esp, 0x18
mov eax, 1
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov byte [esp + 0x98], 4
call fcn.5909f180
lea ecx, [esp + 0x18]
mov byte [esp + 0x98], 2
call fcn.5909f180
jmp 0x59024743
mov edi, dword [esp + 0x24]
mov ecx, 0x400
xor eax, eax
push ebp
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x28]
push edi
push ebx
call fcn.5908298b
push ebx
call fcn.59081f0d
push 0x5917ae30
push ebp
push edi
call fcn.5900f390
mov edx, eax
add esp, 0x1c
cmp edx, 0xffffffff
je 0x5902475a
mov edi, 0x5917ae30
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add edx, ecx
sub ebp, edx
cmp ebp, 0x16c
jle 0x59024764
mov eax, dword [esp + 0x24]
lea edi, [edx + eax + 0x15c]
test edi, edi
je 0x5902476e
lea eax, [edx + eax + 0x144]
push 0x14
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.590b3ee0
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0x98], 6
call fcn.590a04b0
mov eax, dword [0x59155850]
mov dword [esp + 0x84], eax
mov byte [esp + 0x98], 7
mov dword [esp + 0x88], eax
mov byte [esp + 0x98], 8
mov dword [esp + 0x8c], eax
lea edx, [esp + 0x10]
lea ecx, [esp + 0x84]
push edx
mov byte [esp + 0x9c], 0xa
call fcn.5909f310
mov eax, dword [esp + 0xb8]
mov ecx, dword [eax]
mov eax, dword [esp + 0x2c]
mov edx, dword [esi + ecx]
mov ecx, esi
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0xb0]
mov dword [esp + 0x6c], eax
add ecx, dword [edx]
push ecx
lea ecx, [esp + 0x90]
call fcn.5909f310
mov eax, dword [edi]
push eax
call fcn.59104640
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x80], eax
add esp, 4
mov eax, dword [ecx - 8]
test eax, eax
je 0x590244bf
mov eax, dword [esp + 0x40]
xor edi, edi
test eax, eax
jle 0x590244bf
mov edx, dword [esp + 0x3c]
mov eax, dword [edx + edi*4]
push eax
mov eax, dword [esp + 0x14]
push eax
call fcn.590827a8
add esp, 8
test eax, eax
je 0x59024480
mov eax, dword [esp + 0x40]
inc edi
cmp edi, eax
jl 0x5902445c
jmp 0x590244bf
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x4c]
mov edx, dword [ecx + edi*4]
lea ecx, [eax + edi*4]
push ecx
lea ecx, [esp + 0x8c]
mov dword [esp + 0x74], edx
call fcn.5909f310
mov eax, dword [esp + 0x7c]
test eax, eax
jne 0x590244bf
mov edx, dword [esp + 0x4c]
mov ecx, esi
lea eax, [edx + edi*4]
mov edx, dword [esp + 0xb4]
push eax
add ecx, dword [edx]
call fcn.5909f310
mov eax, dword [0x5919cca0]
test eax, eax
je 0x59024500
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x7c]
push eax
mov eax, dword [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x78]
push edx
push eax
push ecx
push str.GetSpecialAttachChipInfo__2__size:__d__d__d____s___name_:__s_
push str.MailLog
push 0xffffffffffffffff
push 0x5919cc34
call fcn.5907cd70
add esp, 0x24
mov ebx, dword [esp + 0xbc]
xor edi, edi
mov eax, dword [ebx + 4]
mov ebp, eax
mov dword [esp + 0x34], ebp
inc ebp
cmp ebp, edi
jne 0x5902454d
mov esi, dword [ebx]
cmp esi, edi
je 0x59024542
mov edx, eax
dec eax
test edx, edx
je 0x59024535
lea ebp, [eax + 1]
push edi
mov ecx, esi
call fcn.5905b4f0
add esi, 0x24
dec ebp
jne 0x59024527
mov eax, dword [ebx]
push eax
call fcn.591315d9
add esp, 4
mov dword [ebx], edi
mov dword [ebx + 8], edi
mov dword [ebx + 4], edi
jmp 0x590246b7
mov ecx, dword [ebx]
cmp ecx, edi
jne 0x590245bd
lea esi, [ebp + ebp*8]
shl esi, 2
push esi
call fcn.591315b0
mov ecx, esi
mov edi, eax
mov edx, ecx
mov dword [ebx], edi
xor eax, eax
mov ebx, edi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
mov dword [esp + 0x28], ebx
rep stosb byte es:[edi], al
lea esi, [ebp]
mov dword [esp + 0x38], ebx
test ebx, ebx
mov byte [esp + 0x98], 0xb
je 0x59024599
mov ecx, ebx
call fcn.59023de0
add ebx, 0x24
mov byte [esp + 0x98], 0xa
dec esi
mov dword [esp + 0x28], ebx
jne 0x59024582
mov eax, dword [esp + 0xbc]
mov dword [eax + 8], ebp
mov dword [eax + 4], ebp
jmp 0x590246b0
mov esi, dword [ebx + 8]
cmp ebp, esi
jg 0x59024610
cmp eax, ebp
jge 0x590245e4
mov edx, ebp
sub edx, eax
lea eax, [eax + eax*8]
push edx
lea ecx, [ecx + eax*4]
push ecx
call fcn.5905c0e0
add esp, 8
mov dword [ebx + 4], ebp
jmp 0x590246b7
jle 0x59024608
lea edx, [ebp + ebp*8]
sub eax, ebp
lea esi, [ecx + edx*4]
mov ecx, eax
dec eax
test ecx, ecx
je 0x59024608
lea edi, [eax + 1]
push 0
mov ecx, esi
call fcn.5905b4f0
add esi, 0x24
dec edi
jne 0x590245f9
mov dword [ebx + 4], ebp
jmp 0x590246b7
mov ecx, dword [ebx + 0xc]
cmp ecx, edi
jne 0x5902463b
cdq
and edx, 7
add eax, edx
mov ecx, eax
sar ecx, 3
cmp ecx, 4
jge 0x5902462e
mov ecx, 4
jmp 0x5902463b
cmp ecx, 0x400
jle 0x5902463b
mov ecx, 0x400
lea eax, [esi + ecx]
cmp ebp, eax
jge 0x59024648
mov dword [esp + 0x28], eax
jmp 0x5902464e
mov dword [esp + 0x28], ebp
mov eax, ebp
lea edx, [eax + eax*8]
shl edx, 2
push edx
call fcn.591315b0
mov ebx, eax
mov eax, dword [esp + 0xc0]
mov edi, ebx
mov ecx, dword [eax + 4]
mov esi, dword [eax]
lea ecx, [ecx + ecx*8]
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 4]
mov ecx, ebp
sub ecx, eax
lea edx, [eax + eax*8]
push ecx
lea eax, [ebx + edx*4]
push eax
call fcn.5905c0e0
mov esi, dword [esp + 0xc8]
mov eax, dword [esi]
push eax
call fcn.591315d9
mov ecx, dword [esp + 0x38]
add esp, 0x10
mov dword [esi], ebx
mov dword [esi + 4], ebp
mov dword [esi + 8], ecx
mov ebx, dword [esp + 0xbc]
mov eax, dword [esp + 0x34]
mov ecx, dword [ebx]
lea edx, [esp + 0x6c]
lea eax, [eax + eax*8]
push edx
lea ecx, [ecx + eax*4]
call fcn.59025530
lea ecx, [esp + 0x8c]
mov byte [esp + 0x98], 0xd
call fcn.5909f180
lea ecx, [esp + 0x88]
mov byte [esp + 0x98], 0xc
call fcn.5909f180
lea ecx, [esp + 0x84]
mov byte [esp + 0x98], 6
call fcn.5909f180
lea ecx, [esp + 0x10]
mov byte [esp + 0x98], 5
call fcn.5909f180
lea ecx, [esp + 0x14]
mov byte [esp + 0x98], 4
call fcn.5909f180
lea ecx, [esp + 0x18]
mov byte [esp + 0x98], 2
call fcn.5909f180
mov edi, dword [esp + 0xa8]
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
inc eax
cmp eax, ebx
mov dword [esp + 0x2c], eax
jl 0x5902424b
jmp 0x590247a0
mov dword [esp + 0x1c], 2
jmp 0x59024776
mov dword [esp + 0x1c], 3
jmp 0x59024776
mov dword [esp + 0x1c], 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 1
mov byte [esp + 0x98], 4
call fcn.5909f180
lea ecx, [esp + 0x18]
mov byte [esp + 0x98], 2
call fcn.5909f180
lea ecx, [esp + 0x4c]
mov byte [esp + 0x98], 1
call fcn.590a4b10
lea ecx, [esp + 0x5c]
mov byte [esp + 0x98], 0
call fcn.590ab1d0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x98], 0xffffffff
call fcn.590a4b10
mov edx, dword [esp + 0x24]
push edx
call fcn.591315d9
add esp, 4
xor ebp, ebp
pop edi
pop esi
pop ebx
mov eax, dword [0x5919cca0]
cmp eax, ebp
pop ebp
je 0x5902481a
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push 0x3d0
push str.GetSpecialAttachChipInfo_ret__type_:__08x___bFail:_d___dwError_:__d_
push str.MailLog
push 0xffffffffffffffff
push 0x5919cc34
call fcn.5907cd70
add esp, 0x1c
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
add esp, 0x8c
ret